/* ============================================
   FORGOT PASSWORD CSS - Knowledge Wave India
   Colors: #0A210F #14591D #99AA38 #392F5A #F6F8FF
   ============================================ */

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

.forgot-container {
    margin-top: 80px;
    width: 100%;
    max-width: 480px;
}

/* ========== CARD ========== */
.forgot-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px 35px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.08);
    text-align: center;
}

.forgot-icon {
    width: 75px;
    height: 75px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #0A210F, #14591D);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #99AA38;
}

.success-icon {
    background: linear-gradient(135deg, #99AA38, #14591D);
}
.success-icon i {
    color: #fff;
}

.forgot-card h2 {
    font-size: 26px;
    font-weight: 800;
    color: #0A210F;
    margin: 0 0 8px;
}

.subtitle {
    font-size: 14px;
    color: #888;
    margin: 0 0 28px;
    line-height: 1.6;
}

/* ========== FORM ========== */
.form-group {
    text-align: left;
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #0A210F;
    margin-bottom: 6px;
}

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

.input-wrap i {
    position: absolute;
    left: 14px;
    color: #aaa;
    font-size: 14px;
    z-index: 1;
}

.input-wrap input {
    width: 100%;
    padding: 14px 14px 14px 42px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    outline: none;
    background: #F6F8FF;
    transition: all 0.3s ease;
}

.input-wrap input:focus {
    border-color: #99AA38;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(153,170,56,0.08);
}

.input-wrap input.error {
    border-color: #e74c3c;
    background: #fff8f8;
}

.error-msg {
    font-size: 11px;
    color: #e74c3c;
    margin-top: 5px;
    display: none;
}

.error-msg.show {
    display: block;
}

/* ========== BUTTON ========== */
.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 15px;
    background: #99AA38;
    color: #0A210F;
    font-weight: 800;
    font-size: 15px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(153,170,56,0.3);
}

.btn-submit:hover {
    background: #0A210F;
    color: #99AA38;
    box-shadow: 0 6px 22px rgba(10,33,15,0.25);
}

.btn-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* ========== LINKS ========== */
.forgot-links {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.forgot-links p {
    font-size: 14px;
    color: #888;
    margin: 0;
}

.forgot-links a {
    color: #99AA38;
    font-weight: 600;
    text-decoration: none;
}

.forgot-links a:hover {
    color: #0A210F;
    text-decoration: underline;
}

/* ========== STEP 2: EMAIL PREVIEW ========== */
.email-preview {
    background: #F6F8FF;
    border-radius: 12px;
    overflow: hidden;
    margin: 20px 0;
    text-align: left;
    border: 1px solid #e0e0e0;
}

.email-header {
    background: #0A210F;
    color: #F6F8FF;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.email-header i {
    color: #99AA38;
}

.email-body {
    padding: 16px;
}

.email-body p {
    font-size: 13px;
    color: #555;
    margin: 0 0 12px;
}

.reset-link-box {
    background: #fff;
    border: 1px dashed #ccc;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
}

.reset-link-box code {
    font-size: 12px;
    color: #99AA38;
    word-break: break-all;
}

.email-note {
    font-size: 11px !important;
    color: #999 !important;
    margin: 0 !important;
}

.email-note strong {
    color: #e74c3c;
}

/* ========== ACTION BUTTONS ========== */
.action-btns {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.btn-resend {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px;
    background: #F6F8FF;
    color: #0A210F;
    font-weight: 600;
    font-size: 14px;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.btn-resend:hover {
    border-color: #99AA38;
    color: #99AA38;
}

.btn-back-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px;
    background: #99AA38;
    color: #0A210F;
    font-weight: 700;
    font-size: 14px;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-back-login:hover {
    background: #0A210F;
    color: #99AA38;
}

/* ========== SCROLL TOP ========== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: #99AA38;
    color: #0A210F;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    z-index: 999;
    display: none;
    box-shadow: 0 4px 16px rgba(153,170,56,0.4);
    transition: all 0.3s ease;
}

.scroll-top.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-top:hover {
    background: #0A210F;
    color: #99AA38;
    transform: translateY(-5px);
}

/* ========== TOAST ========== */
.toast {
    position: fixed;
    top: 95px;
    right: 20px;
    padding: 13px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    z-index: 99999;
    transform: translateX(130%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 280px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.15);
}

.toast.show {
    transform: translateX(0);
}

.toast.success {
    background: #14591D;
}

.toast.error {
    background: #c0392b;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 767.98px) {
    .forgot-card {
        padding: 30px 22px;
    }
    
    .forgot-card h2 {
        font-size: 22px;
    }
    
    .forgot-icon {
        width: 65px;
        height: 65px;
        font-size: 28px;
    }
}

@media (max-width: 575.98px) {
    .forgot-card {
        padding: 25px 16px;
        border-radius: 16px;
    }
    
    .forgot-card h2 {
        font-size: 20px;
    }
    
    .subtitle {
        font-size: 13px;
    }
}