.auth-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-container {
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    width: 100%;
    max-width: 420px;
    animation: slideUp 0.6s ease;
}

.auth-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    text-align: center;
    padding: 2.5rem 2rem;
}

.auth-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.auth-header h1 i {
    font-size: 2.2rem;
}

.auth-header p {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 400;
}

.auth-form {
    padding: 2.5rem 2rem;
}

.auth-form h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 2rem;
    text-align: center;
}

.auth-form .form-group {
    margin-bottom: 1.5rem;
}

.auth-form .form-group:last-of-type {
    margin-bottom: 2rem;
}

.auth-form input,
.auth-form select {
    height: 52px;
    font-size: 1rem;
    border: 2px solid var(--gray-200);
    transition: all 0.3s ease;
}

.auth-form input:focus,
.auth-form select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

.auth-form .btn {
    width: 100%;
    height: 52px;
    font-size: 1rem;
    font-weight: 600;
    justify-content: center;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.auth-form .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.auth-form .btn:hover::before {
    left: 100%;
}

.auth-switch {
    text-align: center;
    color: var(--gray-600);
    font-size: 0.95rem;
}

.auth-switch a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.auth-switch a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Form Validation Styles */
.form-group input.error,
.form-group select.error {
    border-color: var(--danger-color);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-group .error-message {
    color: var(--danger-color);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group .error-message i {
    position: static;
    font-size: 0.875rem;
}

/* Form Help Text */
.form-group .form-help {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-top: 0.5rem;
    line-height: 1.4;
}

/* Loading State */
.auth-form .btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.auth-form .btn.loading span {
    opacity: 0;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .auth-section {
        padding: 1rem;
    }
    
    .auth-container {
        border-radius: 16px;
    }
    
    .auth-header {
        padding: 2rem 1.5rem;
    }
    
    .auth-header h1 {
        font-size: 1.75rem;
    }
    
    .auth-form {
        padding: 2rem 1.5rem;
    }
    
    .auth-form h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .auth-header {
        padding: 1.5rem 1rem;
    }
    
    .auth-header h1 {
        font-size: 1.5rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .auth-form {
        padding: 1.5rem 1rem;
    }
}

/* Animation for form switching */
.auth-form.fade-in {
    animation: fadeInScale 0.4s ease;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}