/* Modern Auth Styles - Login & Register */
:root {
    --primary: #ffc107;
    --primary-dark: #e6ac00;
    --secondary: #28a745;
    --dark: #1a1a2e;
    --light: #f8f9fa;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #ffc107 0%, #ff8a00 100%);
    --gradient-3: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.08);
    --shadow-md: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.15);
}

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

body.auth-page {
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 20px;
}

/* Animated Background */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.bg-animation .circle,
.bg-animation .shape {
    position: absolute;
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
}

.bg-animation .circle:nth-child(1),
.bg-animation .shape:nth-child(1) {
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(255,193,7,0.15), transparent 70%);
    top: -100px; left: -100px;
    animation-delay: 0s;
}

.bg-animation .circle:nth-child(2),
.bg-animation .shape:nth-child(2) {
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(40,167,69,0.1), transparent 70%);
    bottom: -50px; right: -50px;
    animation-delay: 3s;
}

.bg-animation .circle:nth-child(3),
.bg-animation .shape:nth-child(3) {
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(102,126,234,0.1), transparent 70%);
    top: 50%; left: 50%;
    animation-delay: 6s;
}

.bg-animation .circle:nth-child(4) {
    width: 150px; height: 150px;
    background: radial-gradient(circle, rgba(255,193,7,0.1), transparent 70%);
    top: 20%; right: 20%;
    animation-delay: 9s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.6; }
    25% { transform: translate(30px, -30px) scale(1.1); opacity: 0.8; }
    50% { transform: translate(-20px, 20px) scale(0.95); opacity: 0.5; }
    75% { transform: translate(15px, 15px) scale(1.05); opacity: 0.7; }
}

/* Main Container */
.auth-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1000px;
    height: auto;
    margin: 20px auto;
    display: flex;
    background: rgba(255,255,255,0.98);
    border-radius: 28px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    backdrop-filter: blur(20px);
}

/* Left Panel - Branding */
.auth-branding {
    flex: 0 0 40%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.branding-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.welcome-title {
    color: #1a1a2e;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.welcome-subtitle {
    color: rgba(26,26,46,0.7);
    font-size: 1rem;
    margin-bottom: 40px;
}

.branding-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
    text-align: left;
    max-width: 250px;
    margin-left: auto;
    margin-right: auto;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.4);
    padding: 12px 20px;
    border-radius: 15px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: translateX(5px);
}

.feature-item i {
    font-size: 1.4rem;
    color: #1a1a2e;
}

.feature-item span {
    font-weight: 600;
    color: #1a1a2e;
    font-size: 0.95rem;
}

.auth-branding.login-brand {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
}

.auth-branding.login-brand::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    border-radius: 50%;
}

.auth-branding.login-brand::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.auth-logo {
    position: relative;
    z-index: 1;
    width: 150px;
    filter: drop-shadow(0 4px 15px rgba(0,0,0,0.2));
    animation: pulse 3s ease-in-out infinite;
}

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

.auth-branding h2 {
    position: relative;
    z-index: 1;
    font-size: 1.6rem;
    font-weight: 700;
    margin-top: 25px;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.auth-branding.login-brand h2 { color: #1a1a2e; }
.auth-branding.register-brand h2 { color: white; }

.auth-branding p {
    position: relative;
    z-index: 1;
    font-size: 0.95rem;
    margin-top: 8px;
    text-align: center;
}

.auth-branding.login-brand p { color: rgba(26,26,46,0.8); }
.auth-branding.register-brand p { color: rgba(255,255,255,0.9); }

.features-list, .benefits-list {
    position: relative;
    z-index: 1;
    margin-top: 30px;
    list-style: none;
    padding: 0;
}

.features-list li {
    display: flex;
    align-items: center;
    color: #1a1a2e;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.features-list li i {
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-size: 0.95rem;
    box-shadow: var(--shadow-sm);
}

.benefits-list li {
    display: flex;
    align-items: center;
    color: white;
    font-size: 0.9rem;
    margin-bottom: 14px;
    padding: 10px 14px;
    background: rgba(255,255,255,0.15);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.benefits-list li i {
    font-size: 1.2rem;
    margin-right: 10px;
    color: var(--primary);
}

/* Right Panel - Form - FIXED: No scrolling */
.auth-form-panel {
    flex: 1;
    padding: 35px 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: visible;
    background: #ffffff;
    border-top-right-radius: 28px;
    border-bottom-right-radius: 28px;
}

@media (max-width: 991px) {
    .auth-container {
        flex-direction: column;
        max-width: 500px;
        margin: 20px auto;
    }
    .auth-branding {
        border-radius: 28px 28px 0 0;
        min-height: 350px !important;
        padding: 30px 20px;
    }
    .auth-form-panel {
        border-radius: 0 0 28px 28px;
        padding: 30px 25px;
    }
    .auth-branding.login-brand {
        min-height: 400px !important;
    }
}

.auth-branding.login-brand {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    min-height: auto;
}

.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-social:hover {
    background: #f8f9fa;
    border-color: #dee2e6;
    color: var(--dark);
}

.btn-social img {
    width: 20px;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    color: #adb5bd;
}

.divider::before, .divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e9ecef;
}

.divider span {
    padding: 0 10px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.register-link {
    text-align: center;
    margin-top: 15px;
    font-size: 0.9rem;
    color: #6c757d;
}

.register-link a {
    color: var(--primary-dark);
    font-weight: 600;
    text-decoration: none;
}

.back-home {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
}

.back-home a {
    display: flex;
    align-items: center;
    gap: 5px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    background: rgba(0,0,0,0.1);
    padding: 6px 12px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.back-home a:hover {
    color: white;
    background: rgba(0,0,0,0.2);
}

.auth-form-panel h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 5px;
}

.auth-form-panel .subtitle {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 25px;
}

/* Tab Navigation */
.login-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 25px;
    background: #f1f3f5;
    padding: 4px;
    border-radius: 10px;
}

.login-tab {
    flex: 1;
    padding: 10px 16px;
    border: none;
    background: transparent;
    border-radius: 7px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.login-tab.active {
    background: white;
    color: var(--dark);
    box-shadow: var(--shadow-sm);
}

.login-tab:hover:not(.active) {
    color: var(--dark);
}

/* Progress Steps */
.progress-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 28px;
    position: relative;
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 18px;
    left: 40px;
    right: 40px;
    height: 3px;
    background: #e9ecef;
    z-index: 0;
}

.progress-steps .step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.progress-steps .step-number {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 6px;
    transition: all 0.3s ease;
}

.progress-steps .step.active .step-number {
    background: var(--gradient-2);
    color: var(--dark);
    box-shadow: 0 4px 15px rgba(255,193,7,0.4);
}

.progress-steps .step.completed .step-number {
    background: var(--gradient-3);
    color: white;
}

.progress-steps .step-label {
    font-size: 0.75rem;
    color: #6c757d;
    font-weight: 500;
}

.progress-steps .step.active .step-label {
    color: var(--dark);
    font-weight: 600;
}

/* Form Sections */
.login-section {
    display: none;
}

.login-section.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

/* Form Groups */
.form-group {
    margin-bottom: 18px;
}

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

.input-wrapper {
    position: relative;
}

.input-wrapper i:not(.bi-eye):not(.bi-eye-slash) {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #adb5bd;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.input-wrapper i.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #adb5bd;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.auth-form-panel .form-control {
    width: 100%;
    padding: 12px 14px 12px 42px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: #fff;
}

.auth-form-panel .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255,193,7,0.15);
    outline: none;
}

.auth-form-panel .form-control:focus ~ i,
.input-wrapper:focus-within i:not(.bi-eye):not(.bi-eye-slash) {
    color: var(--primary);
}

.auth-form-panel .form-control.is-valid {
    border-color: var(--secondary);
}

.auth-form-panel .form-control.is-invalid {
    border-color: #dc3545;
}

.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #adb5bd;
    cursor: pointer;
    padding: 4px;
    transition: color 0.3s ease;
}

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

/* Two Column Layout */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* Password Strength */
.password-strength {
    margin-top: 6px;
}

.strength-bar {
    height: 4px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 4px;
}

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

.strength-fill.weak { width: 25%; background: #dc3545; }
.strength-fill.fair { width: 50%; background: #ffc107; }
.strength-fill.good { width: 75%; background: #17a2b8; }
.strength-fill.strong { width: 100%; background: #28a745; }

.strength-text {
    font-size: 0.75rem;
    color: #6c757d;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 0.9rem;
}

.remember-me input {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
}

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

.forgot-link:hover {
    color: #218838;
    text-decoration: underline;
}

/* Buttons */
.btn-login, .btn-register {
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary-custom {
    background: var(--gradient-2);
    color: var(--dark);
    box-shadow: 0 4px 15px rgba(255,193,7,0.3);
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,193,7,0.4);
}

.btn-primary-custom:active {
    transform: translateY(0);
}

.btn-otp {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(40,167,69,0.3);
}

.btn-otp:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40,167,69,0.4);
}

.btn-secondary-custom {
    background: #f1f3f5;
    color: var(--dark);
}

.btn-secondary-custom:hover {
    background: #e9ecef;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e9ecef;
}

.divider span {
    padding: 0 12px;
    color: #adb5bd;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Social Login */
.social-buttons {
    display: flex;
    gap: 10px;
}

.btn-social {
    flex: 1;
    padding: 10px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--dark);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-social:hover {
    border-color: var(--primary);
    background: #fffbeb;
    color: var(--dark);
}

.btn-social img {
    width: 18px;
    height: 18px;
}

/* Register/Login Link */
.register-link, .login-link {
    text-align: center;
    margin-top: 20px;
    color: #6c757d;
    font-size: 0.9rem;
}

.register-link a, .login-link a {
    color: var(--secondary);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.register-link a:hover, .login-link a:hover {
    color: #218838;
    text-decoration: underline;
}

/* Terms Checkbox */
.terms-check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 15px;
}

.terms-check input {
    width: 18px;
    height: 18px;
    accent-color: var(--secondary);
    margin-top: 2px;
}

.terms-check label {
    font-size: 0.85rem;
    color: #6c757d;
    line-height: 1.4;
}

.terms-check label a {
    color: var(--secondary);
    text-decoration: none;
}

/* OTP Section Styles */
.otp-input-group {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 20px 0;
}

.otp-input {
    width: 50px;
    height: 55px;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 700;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.otp-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255,193,7,0.15);
    outline: none;
}

.resend-otp {
    text-align: center;
    margin-top: 12px;
}

.resend-btn {
    background: none;
    border: none;
    color: var(--secondary);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.resend-btn:disabled {
    color: #adb5bd;
    cursor: not-allowed;
}

.resend-btn:hover:not(:disabled) {
    color: #218838;
    text-decoration: underline;
}

.timer {
    color: #6c757d;
    font-size: 0.85rem;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #6c757d;
    background: none;
    border: none;
    font-size: 0.85rem;
    cursor: pointer;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.back-btn:hover {
    color: var(--dark);
}

/* Toast Styles */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.custom-toast {
    min-width: 300px;
    padding: 14px 18px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.3s ease;
    margin-bottom: 10px;
}

@keyframes slideIn {
    from { transform: translateX(120%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.toast-success { background: linear-gradient(135deg, #28a745, #20c997); color: white; }
.toast-error { background: linear-gradient(135deg, #dc3545, #ff6b6b); color: white; }
.toast-warning { background: linear-gradient(135deg, #ffc107, #ff8a00); color: var(--dark); }
.toast-info { background: linear-gradient(135deg, #17a2b8, #4facfe); color: white; }

.custom-toast i { font-size: 1.3rem; }
.toast-content { flex: 1; }
.toast-title { font-weight: 600; font-size: 0.95rem; margin-bottom: 2px; }
.toast-message { font-size: 0.85rem; opacity: 0.9; }
.toast-close { background: none; border: none; color: inherit; opacity: 0.7; cursor: pointer; padding: 4px; }
.toast-close:hover { opacity: 1; }

/* Spinner */
.spinner {
    width: 18px;
    height: 18px;
    border: 3px solid rgba(0,0,0,0.1);
    border-left-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.btn-loading { pointer-events: none; opacity: 0.8; }

/* Validation Feedback */
.invalid-feedback {
    display: block;
    margin-top: 4px;
    font-size: 0.8rem;
    color: #dc3545;
}

.valid-feedback {
    display: block;
    margin-top: 4px;
    font-size: 0.8rem;
    color: #28a745;
}

/* Responsive */
@media (max-width: 992px) {
    .auth-container {
        flex-direction: column;
        max-width: 500px;
    }

    .auth-branding {
        padding: 30px 25px;
    }

    .benefits-list, .features-list {
        display: none;
    }

    .auth-form-panel {
        padding: 30px 25px;
    }

    .progress-steps::before {
        left: 30px;
        right: 30px;
    }
}

@media (max-width: 576px) {
    body.auth-page { padding: 10px; }

    .auth-container { border-radius: 18px; }

    .auth-branding {
        padding: 25px 20px;
    }

    .auth-logo { width: 120px; }

    .auth-branding h2 { font-size: 1.3rem; }

    .auth-form-panel {
        padding: 25px 18px;
    }

    .auth-form-panel h1 { font-size: 1.5rem; }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .progress-steps .step-label { font-size: 0.65rem; }
    .progress-steps .step-number { width: 34px; height: 34px; font-size: 0.85rem; }

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

    .otp-input {
        width: 42px;
        height: 48px;
        font-size: 1.2rem;
    }
}

/* Extra small screens */
@media (max-width: 400px) {
    .auth-form-panel {
        padding: 20px 15px;
    }
    
    .form-group {
        margin-bottom: 14px;
    }
    
    .auth-form-panel .form-control {
        padding: 10px 12px 10px 38px;
        font-size: 0.9rem;
    }
    
    .btn-login, .btn-register {
        padding: 11px;
        font-size: 0.9rem;
    }
}

/* Forgot Password Modal Styles */
.forgot-modal-content {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.forgot-modal-header {
    background: var(--gradient-2);
    padding: 30px 30px 25px;
    text-align: center;
    position: relative;
    border: none;
}

.forgot-modal-header .btn-close {
    position: absolute;
    top: 15px;
    right: 15px;
    opacity: 0.8;
}

.forgot-modal-header .btn-close:hover {
    opacity: 1;
}

.modal-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    backdrop-filter: blur(10px);
}

.modal-icon i {
    font-size: 2rem;
    color: #1a1a2e;
}

.forgot-modal-header .modal-title {
    color: #1a1a2e;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.modal-subtitle {
    color: rgba(26, 26, 46, 0.8);
    font-size: 0.9rem;
    margin: 0;
}

.forgot-modal-body {
    padding: 30px;
}

.forgot-modal-body .form-group {
    margin-bottom: 20px;
}

.forgot-modal-body .form-group label {
    display: block;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.forgot-modal-body .input-wrapper {
    position: relative;
}

.forgot-modal-body .input-wrapper i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #adb5bd;
    font-size: 1rem;
}

.forgot-modal-body .form-control {
    width: 100%;
    padding: 14px 14px 14px 45px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.forgot-modal-body .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255, 193, 7, 0.15);
    outline: none;
}

.forgot-modal-body .form-control:focus ~ i {
    color: var(--primary);
}

.back-to-login-btn {
    background: none;
    border: none;
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s ease;
}

.back-to-login-btn:hover {
    color: #1a1a2e;
}

.forgot-modal-body .btn-login {
    margin-top: 10px;
}

.forgot-modal-body .btn-login .spinner {
    width: 18px;
    height: 18px;
    border: 3px solid rgba(0,0,0,0.1);
    border-left-color: currentColor;
    border-radius: 50%;
    animation: forgotSpin 0.8s linear infinite;
}

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

/* Email Sent / Success Styles */
.button-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-box-wrapper {
    margin: 25px 0;
}

.status-container {
    display: block !important;
    text-align: center;
}

.status-container p {
    margin-bottom: 0;
}
.success-icon-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 25px;
}

.success-icon {
    width: 100px;
    height: 100px;
    background: var(--gradient-3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    animation: emailBounceIn 0.6s ease;
}

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

.success-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: rgba(40, 167, 69, 0.3);
    border-radius: 50%;
    animation: emailPulse 2s ease-in-out infinite;
}

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

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

.email-display {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 15px 25px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
    font-size: 1.1rem;
    color: var(--dark);
    border: 2px solid #e9ecef;
}

.email-display i {
    color: var(--secondary);
    font-size: 1.3rem;
}

.info-box {
    background: #fff8e6;
    border-left: 4px solid var(--primary);
    padding: 15px 20px;
    border-radius: 0 12px 12px 0;
    display: flex;
    gap: 12px;
    text-align: left;
    margin: 25px 0;
}

.info-box > i {
    color: var(--primary);
    font-size: 1.3rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.info-box p {
    margin: 0 0 8px;
    color: var(--dark);
    font-size: 0.9rem;
}

.info-box ul {
    margin: 0;
    padding-left: 18px;
    color: #6c757d;
    font-size: 0.85rem;
}

.info-box ul li {
    margin-bottom: 4px;
}

.action-buttons {
    margin-top: 25px;
}

.action-buttons .btn-login {
    display: inline-flex;
    padding: 14px 35px;
}

.resend-link {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.status-msg {
    margin-top: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    display: none;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Success Checkmark Animation */
.success-animation {
    margin: 0 auto 30px;
}

.success-checkmark {
    width: 100px;
    height: 100px;
    margin: 0 auto;
}

.check-icon {
    width: 100px;
    height: 100px;
    position: relative;
    border-radius: 50%;
    box-sizing: content-box;
    border: 4px solid var(--secondary);
}

.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: rotateCircle 4.25s ease-in;
}

.check-icon::before, .check-icon::after {
    content: '';
    height: 100px;
    position: absolute;
    background: #fff;
    transform: rotate(-45deg);
}

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

.icon-line.line-tip {
    top: 46px;
    left: 14px;
    width: 25px;
    transform: rotate(45deg);
    animation: iconLineTip 0.75s;
}

.icon-line.line-long {
    top: 38px;
    right: 8px;
    width: 47px;
    transform: rotate(-45deg);
    animation: iconLineLong 0.75s;
}

.icon-circle {
    top: -4px;
    left: -4px;
    z-index: 10;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    position: absolute;
    box-sizing: content-box;
    border: 4px solid rgba(40, 167, 69, 0.5);
}

.icon-fix {
    top: 8px;
    width: 5px;
    left: 26px;
    z-index: 1;
    height: 85px;
    position: absolute;
    transform: rotate(-45deg);
    background-color: #fff;
}

@keyframes rotateCircle {
    0% { transform: rotate(-45deg); }
    5% { transform: rotate(-45deg); }
    12% { transform: rotate(-405deg); }
    100% { transform: rotate(-405deg); }
}

@keyframes iconLineTip {
    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: 46px; }
}

@keyframes iconLineLong {
    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; }
}

.success-title {
    color: var(--secondary);
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.success-message-box {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-left: 4px solid var(--secondary);
    padding: 15px 20px;
    border-radius: 0 12px 12px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 25px 0;
    text-align: left;
}

.success-message-box i {
    color: var(--secondary);
    font-size: 1.3rem;
    flex-shrink: 0;
}

.success-message-box p {
    margin: 0;
    color: #155724;
    font-size: 0.95rem;
}

/* Confetti Animation */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 999;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    opacity: 0;
    animation: confettiFall 3s ease-in-out forwards;
}

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

/* Logout Specific Styles */
.logout-icon-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 25px;
}

.logout-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    animation: logoutBounceIn 0.6s ease;
}

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

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

.logout-message {
    background: #f8f9fa !important;
    border-left: 4px solid #6c757d !important;
}

.logout-message p {
    margin: 0;
    color: #495057;
}

.btn-outline-custom {
    background: transparent;
    border: 2px solid #e9ecef;
    color: var(--dark);
    margin-top: 10px;
}

.btn-outline-custom:hover {
    background: #f8f9fa;
    border-color: #dee2e6;
    color: var(--dark);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f1f3f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.social-btn:hover {
    background: var(--primary);
    color: var(--dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255,193,7,0.3);
}
