/* Authentication Pages Styles */

.auth-container {
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.auth-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 50px 40px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 10px 40px var(--shadow);
}

.auth-header {
    text-align: center;
    margin-bottom: 40px;
}

.auth-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
}

.auth-form {
    width: 100%;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.1);
}

.form-select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.form-select:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.form-hint {
    display: block;
    margin-top: 6px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.role-selection {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.role-option {
    cursor: pointer;
}

.role-option input[type="radio"] {
    display: none;
}

.role-card {
    padding: 20px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
    background: var(--bg-secondary);
}

.role-option input[type="radio"]:checked + .role-card {
    border-color: var(--accent-primary);
    background: rgba(167, 139, 250, 0.1);
}

.role-card:hover {
    border-color: var(--accent-primary);
}

.role-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 10px;
    color: var(--accent-primary);
}

.role-title {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
}

.btn-full {
    width: 100%;
    justify-content: center;
    margin-top: 10px;
}

.btn-social {
    width: 100%;
    padding: 14px 20px;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-primary);
}

.btn-social:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 4px 12px var(--shadow);
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 30px 0;
    color: var(--text-secondary);
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.auth-divider span {
    padding: 0 15px;
    font-size: 0.9rem;
}

.auth-footer {
    text-align: center;
    margin-top: 30px;
    color: var(--text-secondary);
}

.auth-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.auth-link:hover {
    text-decoration: underline;
}

.error-message {
    padding: 12px 16px;
    background: rgba(245, 101, 101, 0.1);
    border: 1px solid rgba(245, 101, 101, 0.3);
    border-radius: 8px;
    color: #F56565;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.success-message {
    padding: 12px 16px;
    background: rgba(72, 187, 120, 0.1);
    border: 1px solid rgba(72, 187, 120, 0.3);
    border-radius: 8px;
    color: #48BB78;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-group label {
    margin: 0;
    font-weight: normal;
    cursor: pointer;
}

.forgot-password-link {
    display: block;
    text-align: right;
    margin-top: -10px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

/* Loading State */
.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    right: 20px;
    margin-top: -8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .auth-card {
        padding: 40px 30px;
    }

    .role-selection {
        grid-template-columns: 1fr;
    }

    .auth-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .auth-container {
        padding: 20px 15px;
    }

    .auth-card {
        padding: 30px 20px;
    }

    .auth-title {
        font-size: 1.5rem;
    }
}