/* Authentication Pages Styles */

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --border-radius: 12px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

html {
    height: 100%;
    overflow-x: hidden;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    height: 100vh;
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* Background Animation */
.auth-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 20s infinite linear;
    pointer-events: none;
    will-change: transform;
}

.shape-1 {
    width: 80px;
    height: 80px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 120px;
    height: 120px;
    top: 20%;
    right: 10%;
    animation-delay: 2s;
}

.shape-3 {
    width: 60px;
    height: 60px;
    top: 60%;
    left: 20%;
    animation-delay: 4s;
}

.shape-4 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    right: 20%;
    animation-delay: 6s;
}

.shape-5 {
    width: 140px;
    height: 140px;
    bottom: 10%;
    left: 15%;
    animation-delay: 8s;
}

.shape-6 {
    width: 90px;
    height: 90px;
    top: 40%;
    right: 30%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 1;
    }
}

/* Main Container */
.auth-container {
    height: 100vh;
    position: relative;
    z-index: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Branding Section */
.auth-branding {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.auth-branding::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
    z-index: 1;
}

.branding-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 3rem;
    max-width: 500px;
}

.brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.brand-logo i {
    font-size: 3rem;
    color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-logo h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark-color);
    margin: 0;
}

.brand-tagline h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.brand-tagline p {
    font-size: 1.1rem;
    color: var(--secondary-color);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.brand-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.feature-item i {
    font-size: 1.25rem;
    color: var(--primary-color);
    width: 24px;
    text-align: center;
}

.feature-item span {
    font-weight: 600;
    color: var(--dark-color);
    font-size: 0.9rem;
}

.brand-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-item h3 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.stat-item p {
    font-size: 0.85rem;
    color: var(--secondary-color);
    font-weight: 500;
    margin: 0;
}

/* Form Section */
.auth-form-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    height: 100vh;
    overflow-y: auto;
}

.auth-form-container {
    width: 100%;
    max-width: 480px;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-xl);
}

.auth-form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.mobile-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.mobile-brand i {
    font-size: 2rem;
    color: var(--primary-color);
}

.mobile-brand h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--dark-color);
    margin: 0;
}

.auth-form-header h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.auth-form-header p {
    color: var(--secondary-color);
    font-size: 1rem;
    margin: 0;
}

/* Form Styles */
.auth-form {
    width: 100%;
}

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

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 1rem;
    color: var(--secondary-color);
    font-size: 1rem;
    z-index: 2;
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 3rem;
    border: 2px solid #e2e8f0;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    background: white;
}

.form-control::placeholder {
    color: #94a3b8;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    color: var(--secondary-color);
    cursor: pointer;
    padding: 0.25rem;
    z-index: 2;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: var(--primary-color);
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-check-input {
    width: 1.125rem;
    height: 1.125rem;
    border: 2px solid #e2e8f0;
    border-radius: 4px;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-label {
    font-size: 0.9rem;
    color: var(--dark-color);
    margin: 0;
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Buttons */
.auth-btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border: none;
    border-radius: var(--border-radius);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.auth-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 ease;
}

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

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-text {
    font-weight: 600;
}

.btn-icon {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.auth-btn:hover .btn-icon {
    transform: translateX(2px);
}

/* Divider */
.divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e2e8f0;
}

.divider span {
    background: white;
    padding: 0 1rem;
    color: var(--secondary-color);
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

/* Social Login */
.social-login {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.social-btn {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: var(--border-radius);
    background: white;
    color: var(--dark-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.social-btn:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.google-btn:hover {
    border-color: #ea4335;
    color: #ea4335;
}

.microsoft-btn:hover {
    border-color: #0078d4;
    color: #0078d4;
}

/* Auth Footer */
.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
}

.auth-footer p {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

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

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-overlay.active {
    display: flex;
}

.loading-spinner {
    text-align: center;
    color: white;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner p {
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
}

/* Registration Steps */
.registration-steps {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    position: relative;
}

.registration-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 25%;
    right: 25%;
    height: 2px;
    background: #e2e8f0;
    z-index: 1;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 2;
    flex: 1;
    max-width: 120px;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e2e8f0;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}

.step.completed .step-number {
    background: var(--success-color);
    color: white;
}

.step span {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--secondary-color);
    text-align: center;
    line-height: 1.2;
}

.step.active span {
    color: var(--primary-color);
}

.step.completed span {
    color: var(--success-color);
}

/* Form Steps */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.step-buttons .btn {
    flex: 1;
}

/* Password Strength */
.password-strength {
    margin-top: 0.5rem;
}

.strength-bar {
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.25rem;
}

.strength-fill {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.strength-fill.weak {
    width: 25%;
    background: var(--danger-color);
}

.strength-fill.fair {
    width: 50%;
    background: var(--warning-color);
}

.strength-fill.good {
    width: 75%;
    background: #3b82f6;
}

.strength-fill.strong {
    width: 100%;
    background: var(--success-color);
}

.strength-text {
    font-size: 0.8rem;
    color: var(--secondary-color);
}

/* Terms Checkbox */
.terms-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.terms-checkbox .form-check-input {
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.terms-checkbox .form-check-label {
    line-height: 1.5;
}

.terms-checkbox a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.terms-checkbox a:hover {
    text-decoration: underline;
}

/* Verification Content */
.verification-content {
    text-align: center;
    margin-bottom: 2rem;
}

.verification-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--success-color) 0%, #059669 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.verification-icon i {
    font-size: 2rem;
    color: white;
}

.verification-content h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.verification-content p {
    color: var(--secondary-color);
    margin: 0;
}

/* Register Branding */
.register-branding {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.95) 0%, rgba(168, 85, 247, 0.95) 100%);
    color: white;
    height: 100vh;
    overflow-y: auto;
}

.register-branding::before {
    background: rgba(255, 255, 255, 0.1);
}

.register-branding .brand-logo h1,
.register-branding .brand-tagline h2 {
    color: white;
}

.register-branding .brand-tagline p {
    color: rgba(255, 255, 255, 0.9);
}

/* Testimonial */
.testimonial {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin: 2rem 0;
    backdrop-filter: blur(10px);
}

.testimonial-content p {
    font-style: italic;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.95);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.testimonial-author strong {
    display: block;
    color: white;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.testimonial-author span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* Brand Benefits */
.brand-benefits {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
}

.benefit-item i {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    width: 30px;
    text-align: center;
}

.benefit-item h4 {
    color: white;
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.benefit-item p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 0.9rem;
}

/* Forgot Password Styles */
.forgot-password-container {
    max-width: 420px;
    max-height: 90vh;
    overflow-y: auto;
}

.forgot-step {
    display: none;
}

.forgot-step.active {
    display: block;
    animation: fadeInUp 0.5s ease;
}

.forgot-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.forgot-icon.success {
    background: linear-gradient(135deg, var(--success-color) 0%, #059669 100%);
}

.forgot-icon i {
    font-size: 2rem;
    color: white;
}

.forgot-form {
    display: none;
}

.forgot-form.active {
    display: block;
    animation: fadeInUp 0.5s ease;
}

.resend-section {
    text-align: center;
    margin-bottom: 2rem;
}

.resend-timer {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.email-instructions {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-top: 1rem;
}

.email-instructions p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.email-tips {
    background: rgba(0, 0, 0, 0.02);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.email-tips h5 {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.email-tips ul {
    margin: 0;
    padding-left: 1.25rem;
}

.email-tips li {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.success-message {
    text-align: center;
}

.success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--success-color) 0%, #059669 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.success-icon i {
    font-size: 2rem;
    color: white;
}

.success-message h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.75rem;
}

.success-message p {
    color: var(--secondary-color);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    body {
        position: static;
        height: auto;
        min-height: 100vh;
        overflow: auto;
    }

    .auth-container {
        height: auto;
        min-height: 100vh;
        overflow: visible;
    }

    .auth-branding {
        display: none !important;
    }

    .auth-form-section {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        height: auto;
        min-height: 100vh;
        overflow: visible;
    }

    .auth-form-container {
        margin: 1rem;
        padding: 1.5rem;
    }

    .brand-features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .brand-stats {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 767.98px) {
    .auth-container {
        padding: 1rem 0;
        height: auto;
        min-height: 100vh;
    }

    .auth-form-section {
        height: auto;
        min-height: 100vh;
        padding: 1rem;
    }

    .auth-form-container {
        margin: 0.5rem;
        padding: 1.25rem;
    }

    .auth-form-header h3 {
        font-size: 1.5rem;
    }

    .brand-logo h1,
    .mobile-brand h2 {
        font-size: 1.5rem;
    }

    .brand-logo i,
    .mobile-brand i {
        font-size: 1.75rem;
    }

    .registration-steps {
        margin-bottom: 1.5rem;
    }

    .step {
        max-width: 80px;
    }

    .step-number {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .step span {
        font-size: 0.7rem;
    }

    .social-login {
        flex-direction: column;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .step-buttons {
        flex-direction: column;
    }

    .floating-shapes .shape {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .auth-form-container {
        margin: 0.25rem;
        padding: 1rem;
    }

    .registration-steps::before {
        left: 20%;
        right: 20%;
    }

    .step {
        max-width: 70px;
    }

    .step span {
        font-size: 0.65rem;
    }

    .form-control {
        padding: 0.75rem 1rem 0.75rem 2.75rem;
        font-size: 0.95rem;
    }

    .input-icon {
        left: 0.875rem;
        font-size: 0.9rem;
    }

    .auth-btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
    }
}

/* Animation Enhancements */
@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.auth-form-section {
    animation: slideInFromRight 0.8s ease;
}

.auth-branding {
    animation: slideInFromLeft 0.8s ease;
}

/* Focus States */
.form-control:focus + .password-toggle {
    color: var(--primary-color);
}

.form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Error States */
.form-control.is-invalid {
    border-color: var(--danger-color);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.invalid-feedback {
    display: block;
    color: var(--danger-color);
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

/* Success States */
.form-control.is-valid {
    border-color: var(--success-color);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.valid-feedback {
    display: block;
    color: var(--success-color);
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .floating-shapes .shape {
        animation: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .auth-form-container {
        border: 2px solid var(--dark-color);
    }

    .form-control {
        border-width: 2px;
    }

    .auth-btn {
        border: 2px solid var(--primary-dark);
    }
}

/* Enhanced Login Page Styles */

/* Login Branding Enhancements */
.login-branding {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.login-branding::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    z-index: 1;
}

.login-branding .branding-content {
    position: relative;
    z-index: 2;
}

/* Animated Logo */
.animated-logo {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.logo-icon {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.logo-icon i {
    font-size: 4rem;
    color: white;
    display: block;
    animation: logoFloat 3s ease-in-out infinite;
}

.logo-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: logoPulse 2s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes logoPulse {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

.animated-logo h1 {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    margin: 0 0 0.5rem 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo-tagline {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Brand Hero */
.brand-hero {
    text-align: center;
    margin-bottom: 3rem;
}

.brand-hero h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.brand-hero p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    max-width: 400px;
    margin: 0 auto;
}

/* Enhanced Features */
.brand-features {
    margin-bottom: 3rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.feature-item:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon i {
    font-size: 1.25rem;
    color: white;
}

.feature-content {
    flex: 1;
}

.feature-content h4 {
    color: white;
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.feature-content p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.feature-arrow {
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
}

.feature-item:hover .feature-arrow {
    color: white;
    transform: translateX(5px);
}

/* Success Showcase */
.success-showcase {
    margin-bottom: 2rem;
}

.success-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.success-header h3 {
    color: white;
    font-weight: 600;
    font-size: 1.25rem;
    margin: 0;
}

.success-stats {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.stat-item {
    flex: 1;
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
}

.stat-icon i {
    color: white;
    font-size: 1.1rem;
}

.stat-content h3 {
    color: white;
    font-weight: 800;
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.stat-content p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Customer Testimonial */
.customer-testimonial {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.testimonial-quote {
    margin-bottom: 1rem;
    position: relative;
}

.testimonial-quote i {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.5rem;
}

.testimonial-quote p {
    color: white;
    font-style: italic;
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.testimonial-author img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.author-info strong {
    display: block;
    color: white;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.author-info span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
}

/* Enhanced Login Form */
.enhanced-login-form {
    position: relative;
    overflow: hidden;
}

.enhanced-login-form::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(99, 102, 241, 0.05), transparent);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.mobile-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: var(--border-radius);
    color: white;
}

.mobile-logo i {
    font-size: 2rem;
}

.mobile-logo h2 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 800;
}

/* Welcome Animation */
.welcome-animation {
    text-align: center;
    margin-bottom: 2rem;
}

.welcome-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    animation: welcomePulse 2s ease-in-out infinite;
}

@keyframes welcomePulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(99, 102, 241, 0); }
}

.welcome-icon i {
    font-size: 2.5rem;
    color: white;
}

.welcome-animation h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.75rem;
}

.welcome-animation p {
    color: var(--secondary-color);
    font-size: 1.1rem;
    line-height: 1.5;
    margin: 0;
}

/* Demo Access */
.demo-access {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 2rem;
    text-align: center;
}

.demo-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--success-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.demo-credentials {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    padding: 0.75rem;
}

.demo-credentials small {
    color: var(--secondary-color);
    font-weight: 500;
    font-family: 'Courier New', monospace;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --dark-color: #f8fafc;
        --light-color: #1e293b;
        --secondary-color: #94a3b8;
    }

    .auth-form-container {
        background: rgba(30, 41, 59, 0.95);
        color: var(--dark-color);
    }

    .form-control {
        background: rgba(15, 23, 42, 0.8);
        border-color: #475569;
        color: var(--dark-color);
    }

    .form-control::placeholder {
        color: #64748b;
    }

    .divider span {
        background: rgba(30, 41, 59, 0.95);
    }
}

/* Enhanced Form Elements */
.enhanced-input-group {
    margin-bottom: 2rem;
    position: relative;
}

.enhanced-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.label-icon {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.enhanced-input {
    position: relative;
}

.enhanced-input .form-control {
    padding: 1rem 1rem 1rem 3.25rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.95);
}

.enhanced-input .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    background: white;
    transform: translateY(-2px);
}

.enhanced-input .input-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary-color);
    font-size: 1.1rem;
    z-index: 2;
    transition: all 0.3s ease;
}

.enhanced-input .form-control:focus + .input-icon,
.enhanced-input .form-control:focus ~ .input-icon {
    color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.input-focus-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.enhanced-input .form-control:focus ~ .input-focus-line {
    width: 100%;
}

.enhanced-toggle {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--secondary-color);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 2;
}

.enhanced-toggle:hover {
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
}

.input-helper {
    margin-top: 0.5rem;
}

.input-helper small {
    color: var(--secondary-color);
    font-size: 0.8rem;
}

/* Password Strength Mini */
.password-strength-mini {
    margin-top: 0.5rem;
}

.strength-dots {
    display: flex;
    gap: 0.25rem;
}

.strength-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e2e8f0;
    transition: all 0.3s ease;
}

.strength-dots .dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* Enhanced Options */
.enhanced-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.enhanced-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.enhanced-checkbox .form-check-input {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #e2e8f0;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
    background: white;
}

.checkbox-custom::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 6px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
    transition: all 0.3s ease;
}

.enhanced-checkbox .form-check-input:checked + .form-check-label .checkbox-custom {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.enhanced-checkbox .form-check-input:checked + .form-check-label .checkbox-custom::after {
    opacity: 1;
}

.checkbox-text {
    color: var(--dark-color);
    font-weight: 500;
    font-size: 0.95rem;
}

.enhanced-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.enhanced-link:hover {
    color: var(--primary-dark);
    transform: translateX(2px);
}

/* Enhanced Auth Button */
.enhanced-auth-btn {
    position: relative;
    overflow: hidden;
    height: 56px;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.btn-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.btn-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: inherit;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.3s ease;
}

.enhanced-auth-btn.loading .btn-content {
    opacity: 0;
    transform: translateY(-100%);
}

.enhanced-auth-btn.loading .btn-loading {
    opacity: 1;
    transform: translateY(0);
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Enhanced Divider */
.enhanced-divider {
    display: flex;
    align-items: center;
    margin: 2rem 0;
    gap: 1rem;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
}

.divider-text {
    color: var(--secondary-color);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0 1rem;
    background: white;
    position: relative;
}

/* Enhanced Social Buttons */
.enhanced-social {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.enhanced-social-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: white;
    color: var(--dark-color);
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.enhanced-social-btn:hover::before {
    left: 100%;
}

.enhanced-social-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.google-btn:hover {
    border-color: #ea4335;
    color: #ea4335;
}

.microsoft-btn:hover {
    border-color: #0078d4;
    color: #0078d4;
}

.social-icon {
    width: 24px;
    text-align: center;
}

.social-text {
    flex: 1;
    text-align: center;
}

.social-arrow {
    width: 24px;
    text-align: center;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.enhanced-social-btn:hover .social-arrow {
    opacity: 1;
    transform: translateX(2px);
}

/* Enhanced Footer */
.enhanced-footer {
    text-align: center;
    margin-top: 2rem;
}

.footer-content {
    margin-bottom: 1.5rem;
}

.footer-content p {
    color: var(--secondary-color);
    font-size: 0.95rem;
    margin: 0;
}

.signup-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.signup-link:hover {
    color: var(--primary-dark);
    transform: translateX(2px);
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--primary-color);
}

.separator {
    color: var(--secondary-color);
    font-size: 0.8rem;
}

/* Additional Animations */
@keyframes ripple {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
    }
    100% {
        width: 100px;
        height: 100px;
        opacity: 0;
    }
}

/* Responsive Enhancements */
@media (max-width: 991.98px) {
    .login-branding {
        display: none !important;
    }

    .enhanced-login-form {
        padding: 1.5rem;
    }

    .welcome-animation h3 {
        font-size: 1.75rem;
    }

    .welcome-icon {
        width: 70px;
        height: 70px;
    }

    .welcome-icon i {
        font-size: 2rem;
    }
}

@media (max-width: 767.98px) {
    .enhanced-login-form {
        padding: 1.25rem;
        margin: 0.5rem;
    }

    .welcome-animation h3 {
        font-size: 1.5rem;
    }

    .welcome-animation p {
        font-size: 1rem;
    }

    .enhanced-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .enhanced-social {
        gap: 0.75rem;
    }

    .enhanced-social-btn {
        padding: 0.875rem 1.25rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }

    .separator {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .enhanced-login-form {
        padding: 1rem;
        margin: 0.25rem;
    }

    .demo-access {
        padding: 0.75rem;
    }

    .demo-credentials small {
        font-size: 0.75rem;
    }

    .enhanced-input .form-control {
        padding: 0.875rem 1rem 0.875rem 3rem;
    }

    .enhanced-auth-btn {
        height: 52px;
        font-size: 1rem;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    .animated-logo i,
    .welcome-icon,
    .loading-spinner,
    .logo-pulse {
        animation: none !important;
    }

    .enhanced-input .form-control:focus {
        transform: none;
    }

    .enhanced-social-btn:hover {
        transform: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .enhanced-input .form-control {
        border-width: 3px;
    }

    .enhanced-auth-btn {
        border: 3px solid var(--primary-dark);
    }

    .checkbox-custom {
        border-width: 3px;
    }
}

/* Enhanced Forgot Password Styles */

/* Enhanced Container */
.enhanced-forgot-container {
    max-width: 520px;
    max-height: 95vh;
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
}

.enhanced-forgot-container::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(99, 102, 241, 0.03), transparent);
    animation: shimmer 4s ease-in-out infinite;
}

/* Enhanced Brand */
.enhanced-brand {
    margin-bottom: 2rem;
}

.logo-animation {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.logo-animation i {
    font-size: 3.5rem;
    color: var(--primary-color);
    display: block;
    animation: logoFloat 3s ease-in-out infinite;
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: logoGlow 2s ease-in-out infinite alternate;
}

@keyframes logoGlow {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    100% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.8; }
}

.enhanced-brand h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark-color);
    margin: 0 0 0.5rem 0;
}

.brand-subtitle {
    color: var(--secondary-color);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Progress Indicator */
.forgot-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3rem;
    position: relative;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    z-index: 2;
}

.step-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e2e8f0;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.progress-step.active .step-circle {
    background: var(--primary-color);
    color: white;
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    animation: stepPulse 2s ease-in-out infinite;
}

.progress-step.completed .step-circle {
    background: var(--success-color);
    color: white;
    border-color: rgba(16, 185, 129, 0.3);
}

@keyframes stepPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.progress-step span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--secondary-color);
    text-align: center;
}

.progress-step.active span {
    color: var(--primary-color);
}

.progress-step.completed span {
    color: var(--success-color);
}

.progress-line {
    width: 80px;
    height: 2px;
    background: #e2e8f0;
    position: relative;
    margin: 0 1rem;
}

.progress-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: var(--primary-color);
    transition: width 0.5s ease;
}

.progress-step.completed + .progress-line::after {
    width: 100%;
}

/* Step Animations */
.forgot-steps-container {
    position: relative;
    min-height: 300px;
}

.step-animation {
    text-align: center;
    margin-bottom: 2rem;
}

.forgot-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.email-icon {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
}

.email-sent-icon {
    background: linear-gradient(135deg, var(--success-color) 0%, #059669 100%);
    color: white;
}

.reset-icon {
    background: linear-gradient(135deg, var(--warning-color) 0%, #d97706 100%);
    color: white;
}

.forgot-icon i {
    font-size: 2.5rem;
    z-index: 2;
    position: relative;
}

.icon-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1.3); opacity: 0; }
}

/* Success Checkmark Animation */
.success-checkmark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
}

.check-icon {
    width: 60px;
    height: 60px;
    position: relative;
    border-radius: 50%;
    box-sizing: content-box;
    border: 4px solid var(--success-color);
    animation: checkmarkScale 0.3s ease-in-out 0.9s both;
}

.check-icon::before {
    top: 3px;
    left: -2px;
    width: 30px;
    transform-origin: 100% 50%;
    border-radius: 100px 0 0 100px;
}

.check-icon::after {
    top: 0;
    left: 30px;
    width: 60px;
    transform-origin: 0 50%;
    border-radius: 0 100px 100px 0;
    animation: checkmarkRotate 4.25s ease-in;
}

.icon-line {
    height: 5px;
    background-color: var(--success-color);
    display: block;
    border-radius: 2px;
    position: absolute;
    z-index: 10;
}

.icon-line.line-tip {
    top: 46px;
    left: 14px;
    width: 25px;
    transform: rotate(45deg);
    animation: checkmarkTip 0.75s 0.36s ease-in-out both;
}

.icon-line.line-long {
    top: 38px;
    right: 8px;
    width: 47px;
    transform: rotate(-45deg);
    animation: checkmarkLong 0.75s 0.65s ease-in-out both;
}

@keyframes checkmarkScale {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.05); }
}

@keyframes checkmarkTip {
    0% { width: 0; left: 1px; top: 19px; }
    54% { width: 0; left: 1px; top: 19px; }
    70% { width: 50px; left: -8px; top: 37px; }
    84% { width: 17px; left: 21px; top: 48px; }
    100% { width: 25px; left: 14px; top: 45px; }
}

@keyframes checkmarkLong {
    0% { width: 0; right: 46px; top: 54px; }
    65% { width: 0; right: 46px; top: 54px; }
    84% { width: 55px; right: 0px; top: 35px; }
    100% { width: 47px; right: 8px; top: 38px; }
}

/* Security Notice */
.security-notice {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.05) 100%);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.notice-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--success-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notice-content h5 {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.notice-content p {
    color: var(--secondary-color);
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Email Highlight */
.email-highlight {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(79, 70, 229, 0.05) 100%);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    font-family: 'Courier New', monospace;
}

.email-highlight strong {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
}

/* Enhanced Instructions */
.enhanced-instructions {
    background: rgba(0, 0, 0, 0.02);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-top: 2rem;
}

.instruction-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.instruction-header i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.instruction-header span {
    font-weight: 600;
    color: var(--dark-color);
    font-size: 1rem;
}

.instruction-list {
    margin: 0;
    padding-left: 1.5rem;
    counter-reset: step-counter;
}

.instruction-list li {
    color: var(--secondary-color);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
    position: relative;
    counter-increment: step-counter;
}

.instruction-list li::marker {
    content: counter(step-counter) ". ";
    color: var(--primary-color);
    font-weight: 600;
}

/* Enhanced Resend Section */
.enhanced-resend {
    text-align: center;
    margin-bottom: 2rem;
}

.countdown-display {
    margin-bottom: 2rem;
}

.countdown-circle {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem;
}

.countdown-svg {
    width: 120px;
    height: 120px;
    transform: rotate(-90deg);
}

.countdown-bg {
    fill: none;
    stroke: #e2e8f0;
    stroke-width: 2;
}

.countdown-progress {
    fill: none;
    stroke: var(--primary-color);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 100, 100;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1s linear;
}

.countdown-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.countdown-text span {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    display: block;
}

.countdown-text small {
    font-size: 0.8rem;
    color: var(--secondary-color);
    font-weight: 500;
}

.enhanced-resend-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    background: white;
    color: var(--primary-color);
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 200px;
    margin: 0 auto;
}

.enhanced-resend-btn:hover:not(:disabled) {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.enhanced-resend-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.resend-icon {
    width: 20px;
    text-align: center;
}

.resend-text {
    flex: 1;
    text-align: center;
}

.resend-arrow {
    width: 20px;
    text-align: center;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.enhanced-resend-btn:hover:not(:disabled) .resend-arrow {
    opacity: 1;
    transform: translateX(2px);
}

/* Enhanced Tips */
.enhanced-tips {
    background: rgba(0, 0, 0, 0.02);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-top: 2rem;
}

.tips-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.tips-header i {
    color: var(--warning-color);
    font-size: 1.25rem;
}

.tips-header h5 {
    color: var(--dark-color);
    font-weight: 600;
    margin: 0;
    font-size: 1.1rem;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.tip-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.tip-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.tip-icon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.9rem;
}

.tip-content h6 {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.tip-content p {
    color: var(--secondary-color);
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.4;
}

/* Password Requirements */
.password-requirements {
    background: rgba(0, 0, 0, 0.02);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.password-requirements h5 {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.requirements-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.requirement {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.requirement i {
    color: #e2e8f0;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.requirement.met i {
    color: var(--success-color);
    transform: scale(1.1);
}

.requirement span {
    color: var(--secondary-color);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.requirement.met span {
    color: var(--dark-color);
    font-weight: 500;
}

/* Enhanced Strength Indicator */
.enhanced-strength {
    margin-top: 0.75rem;
}

.strength-indicators {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.strength-level {
    font-weight: 600;
    font-size: 0.85rem;
}

.strength-level.weak { color: var(--danger-color); }
.strength-level.fair { color: var(--warning-color); }
.strength-level.good { color: #3b82f6; }
.strength-level.strong { color: var(--success-color); }

/* Password Match Indicator */
.password-match-indicator {
    position: absolute;
    right: 3.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--success-color);
    opacity: 0;
    transition: all 0.3s ease;
}

.password-match-indicator.show {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.password-match-status {
    margin-top: 0.5rem;
    opacity: 0;
    transition: all 0.3s ease;
}

.password-match-status.show {
    opacity: 1;
}

.match-text {
    color: var(--success-color);
    font-size: 0.85rem;
    font-weight: 500;
}

/* Enhanced Success */
.enhanced-success-content {
    text-align: center;
    position: relative;
}

.success-animation {
    position: relative;
    margin-bottom: 2rem;
}

.success-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    border: 2px solid var(--success-color);
    border-radius: 50%;
    opacity: 0;
    animation: successRipple 2s ease-out infinite;
}

@keyframes successRipple {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

.success-confetti {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.confetti-piece {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    animation: confettiFall 3s ease-out infinite;
}

.confetti-piece:nth-child(1) {
    left: 20%;
    animation-delay: 0s;
    background: var(--success-color);
}

.confetti-piece:nth-child(2) {
    left: 40%;
    animation-delay: 0.5s;
    background: var(--warning-color);
}

.confetti-piece:nth-child(3) {
    left: 60%;
    animation-delay: 1s;
    background: var(--primary-color);
}

.confetti-piece:nth-child(4) {
    left: 80%;
    animation-delay: 1.5s;
    background: #ec4899;
}

.confetti-piece:nth-child(5) {
    left: 30%;
    animation-delay: 2s;
    background: #06b6d4;
}

@keyframes confettiFall {
    0% { transform: translateY(-100px) rotate(0deg); opacity: 1; }
    100% { transform: translateY(200px) rotate(720deg); opacity: 0; }
}

.success-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(16, 185, 129, 0.05);
    border-radius: var(--border-radius);
    border: 1px solid rgba(16, 185, 129, 0.1);
}

.feature-check {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--success-color);
    font-weight: 500;
    font-size: 0.9rem;
}

.feature-check i {
    font-size: 1rem;
}

/* Enhanced Footer */
.footer-links-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.primary-link,
.support-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.primary-link {
    background: var(--primary-color);
    color: white;
}

.primary-link:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
}

.support-link {
    border: 2px solid #e2e8f0;
    color: var(--secondary-color);
}

.support-link:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.footer-security {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.security-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.05) 100%);
    color: var(--success-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Responsive Enhancements for Forgot Password */
@media (max-width: 767.98px) {
    .enhanced-forgot-container {
        padding: 1.25rem;
        margin: 0.5rem;
    }

    .forgot-progress {
        margin-bottom: 2rem;
    }

    .progress-line {
        width: 60px;
        margin: 0 0.5rem;
    }

    .step-circle {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }

    .progress-step span {
        font-size: 0.8rem;
    }

    .tips-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .footer-links-grid {
        flex-direction: column;
        gap: 1rem;
    }

    .countdown-circle {
        width: 100px;
        height: 100px;
    }

    .countdown-svg {
        width: 100px;
        height: 100px;
    }

    .countdown-text span {
        font-size: 1.75rem;
    }
}

@media (max-width: 575.98px) {
    .enhanced-forgot-container {
        padding: 1rem;
        margin: 0.25rem;
    }

    .forgot-icon {
        width: 80px;
        height: 80px;
    }

    .forgot-icon i {
        font-size: 2rem;
    }

    .enhanced-resend-btn {
        min-width: auto;
        width: 100%;
    }
}

/* Prevent unwanted scrolling */
@media (min-width: 992px) {
    html, body {
        overflow: hidden;
        height: 100vh;
    }

    .auth-container {
        overflow-y: hidden;
    }

    .auth-form-section {
        overflow-y: auto;
    }

    .auth-branding {
        overflow-y: auto;
    }
}

/* Ensure mobile scrolling works properly */
@media (max-width: 991.98px) {
    html, body {
        overflow: auto;
        height: auto;
        min-height: 100vh;
    }

    .auth-container {
        overflow: visible;
        height: auto;
        min-height: 100vh;
    }

    .auth-form-section {
        overflow: visible;
        height: auto;
        min-height: 100vh;
    }
}

/* Fix for forgot password page */
.forgot-password-container {
    scrollbar-width: thin;
    scrollbar-color: rgba(99, 102, 241, 0.3) transparent;
}

.forgot-password-container::-webkit-scrollbar {
    width: 6px;
}

.forgot-password-container::-webkit-scrollbar-track {
    background: transparent;
}

.forgot-password-container::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.3);
    border-radius: 3px;
}

.forgot-password-container::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.5);
}
