/* Forgot Password Page Specific Styles */

/* Main Content */
.main-content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 110px;
}

/* Match forgot card with navbar gradient */
.glass-card {
    background: var(--navbar-bg);
    border: 1px solid var(--navbar-border);
    box-shadow: 0 18px 40px rgba(0, 77, 64, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 35px 30px;
    max-width: 520px;
    width: 100%;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

body.dark-mode .glass-card {
    background: var(--navbar-bg);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Logo Container in Main Card */
.main-logo-container {
    text-align: center;
    margin-bottom: 30px;
}

.main-logo-circle {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, #00796B, #004D40);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
    animation: logoFloat 3s ease-in-out infinite;
    transition: all 0.3s ease;
}

.main-logo-circle:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 121, 107, 0.3);
}

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

.main-logo-circle i {
    color: #ffffff;
    font-size: 28px;
}

.logo-text {
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(45deg, var(--primary-color), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 8px rgba(0, 121, 107, 0.15);
    color: var(--primary-color); /* Fallback color */
    padding-bottom: 2px; /* Reduces gap to the underline */
}

.logo-text-wrapper {
    position: relative;
    display: inline-block; /* Ensures wrapper fits the text width */
    border-bottom: 2px solid rgba(0, 121, 107, 0.2);
    margin-bottom: 20px; /* Space below the slogan */
}

.logo-subtitle {
    position: absolute;
    bottom: -20px; /* Positioned below the underline */
    right: 0;
    font-size: 0.7rem;
    font-weight: 500;
    font-style: italic; /* Makes the slogan italic */
}

/* Dark Mode Overrides */
body.dark-mode .main-logo-circle {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    box-shadow: 0 6px 20px rgba(68, 68, 68, 0.3);
}

body.dark-mode .main-logo-circle:hover {
    box-shadow: 0 8px 25px rgba(0, 121, 107, 0.3);
}

body.dark-mode .logo-text {
    background: linear-gradient(45deg, var(--primary-color), #00BFA5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 8px rgba(0, 121, 107, 0.3);
}

body.dark-mode .logo-text-wrapper {
    border-bottom-color: rgba(0, 191, 255, 0.2);
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .main-logo-circle {
        width: 60px;
        height: 60px;
    }
    .main-logo-circle i { font-size: 24px; }
    .logo-text { font-size: 1.8rem; }
}

/* Back to Login Link */
.back-link {
    text-align: center;
    margin-bottom: 20px;
}

.back-link a {
    color: #ffffff;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 50px; /* Capsule Shape */
    background: linear-gradient(45deg, var(--secondary-color), var(--secondary-light));
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(216, 125, 74, 0.2);
}

.back-link a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(216, 125, 74, 0.3);
}

body.dark-mode .back-link a {
    background: linear-gradient(45deg, #D87D4A, #E89A6E);
}

/* Progress Steps */
.progress-steps {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
    gap: 15px;
}

.step { display: flex; flex-direction: column; align-items: center; gap: 6px; }

.step-circle {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 121, 107, 0.15), rgba(216, 125, 74, 0.2));
    border: 1.5px solid rgba(0, 121, 107, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: all 0.3s ease;
    color: #5C5C5C;
    font-size: 14px;
    box-shadow: 0 4px 10px rgba(0, 121, 107, 0.15);
}

.step.active .step-circle { background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)); color: #ffffff; }
.step.completed .step-circle { background: linear-gradient(135deg, #D87D4A, #BF6A3A); color: #ffffff; }
.step-text { font-size: 11px; color: #5C5C5C; }
.step.active .step-text { color: #323232; font-weight: 600; }

/* Dark Mode Step Text */
body.dark-mode .step-text {
    color: rgba(255, 255, 255, 0.7);
}
body.dark-mode .step.active .step-text {
    color: #ffffff;
    font-weight: 600;
}

/* Button Group */
.btn-group { display: flex; gap: 10px; margin-top: 20px; }
.btn-group .btn { flex: 1; }

/* OTP Inputs */
.otp-inputs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 14px 0;
}

.otp-input {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1.5px solid #00796B;
    background: rgba(0, 121, 107, 0.08);
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.otp-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 121, 107, 0.15);
    background: rgba(0, 0, 0, 0.02);
}

body.dark-mode .otp-input {
    border-color: #2fe0ae;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
}

body.dark-mode .otp-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 191, 255, 0.2);
    background: rgba(255, 255, 255, 0.12);
}

@media (max-width: 480px) {
    .otp-inputs { gap: 8px; }
    .otp-input { width: 42px; height: 42px; font-size: 16px; }
}

/* Resend OTP button styling */
#resendOtpBtn {
    background: linear-gradient(135deg, #20c997, #0f9d58);
    color: #ffffff;
    border: none;
    box-shadow: 0 10px 20px rgba(15, 157, 88, 0.2);
}

#resendOtpBtn:hover {
    background: linear-gradient(135deg, #2fe0ae, #0b8651);
    color: #ffffff;
}

#resendOtpBtn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    background: #8da39e;
    color: #f2f5f5;
    box-shadow: none;
}

body.dark-mode #resendOtpBtn {
    background: linear-gradient(135deg, #2fe0ae, #0b8651);
    color: #e6fbf5;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

body.dark-mode #resendOtpBtn:disabled {
    background: #4a5a57;
    color: #e0e8e6;
    border-color: rgba(255, 255, 255, 0.14);
}
.forgot-card {
    background: var(--navbar-bg);
    border-radius: 20px;
    box-shadow: 0 18px 40px rgba(0, 77, 64, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    padding: 35px 30px;
    border: 1px solid rgba(0, 121, 107, 0.35);
    max-width: 520px;
    width: 100%;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body.dark-mode .forgot-card {
    background: var(--navbar-bg);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
