/* ==========================================================================
   changepwd.css — forgot/reset password flow.
   Two genuinely different layouts, same as the real product: a desktop
   3-step wizard floating over a blurred photo, and a plain single-step
   mobile page with no photo at all. Colors below are pixel-sampled from
   the real screenshots (both the desktop "Reset your password" modal and
   the mobile "Get password back" / "Email account validation" screen).
   ========================================================================== */

* { box-sizing: border-box; }
body, h1, h2, p, form { margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Microsoft YaHei", Roboto, Arial, sans-serif;
    height: 100%;
}
html { height: 100%; }

a { text-decoration: none; }

.mobile-reset { display: none; }

/* ==========================================================================
   DESKTOP — floating 3-step wizard over a blurred photo
   ========================================================================== */
.desktop-reset {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: #555; /* fallback while the photo loads */
}
.reset-bg-photo {
    position: absolute;
    inset: 0;
    background-image: url('../img/mainBg0.jpg');
    background-size: cover;
    background-position: center;
    filter: blur(6px);
    transform: scale(1.04);
}
.reset-bg-overlay {
    position: absolute;
    inset: 0;
    background: rgba(20, 20, 25, 0.35);
}

.reset-modal {
    position: relative;
    z-index: 2;
    width: 620px;
    max-width: calc(100% - 40px);
    margin: 10% auto 0;
    background: #ffffff;
    border-radius: 3px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.25);
    overflow: hidden;
}
.reset-topbar {
    height: 5px;
    background: #3379B3;
}
.reset-modal-body {
    padding: 34px 60px 30px;
}
.reset-modal-body h1 {
    text-align: center;
    font-size: 22px;
    font-weight: bold;
    color: #333333;
    margin-bottom: 30px;
}

/* step indicator */
.steps-track {
    position: relative;
    display: flex;
    margin-bottom: 40px;
}
.steps-line {
    position: absolute;
    top: 15px;
    left: 0;
    right: 0;
    height: 2px;
    background: #CCCCCC;
}
.steps-line-active {
    position: absolute;
    top: 15px;
    left: 0;
    width: 16.6667%;
    height: 2px;
    background: #3379B3;
}
.step {
    position: relative;
    flex: 1;
    text-align: center;
}
.step-circle {
    width: 32px;
    height: 32px;
    line-height: 32px;
    border-radius: 50%;
    background: #CCCCCC;
    color: #fff;
    font-weight: bold;
    font-size: 14px;
    margin: 0 auto 10px;
    position: relative;
}
.step.active .step-circle { background: #3379B3; }
.step-label {
    font-size: 13px;
    font-weight: bold;
    color: #999999;
}
.step.active .step-label { color: #333333; }

/* form */
.reset-field-row {
    display: flex;
    align-items: center;
    margin-bottom: 22px;
}
.reset-field-row label {
    width: 88px;
    flex: 0 0 88px;
    text-align: right;
    padding-right: 14px;
    font-size: 14px;
    color: #555555;
}
.reset-field-row .field-control {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}
.reset-field-row input {
    flex: 1;
    min-width: 0;
    height: 38px;
    padding: 0 12px;
    border: 1px solid #AAAAAA;
    border-radius: 2px;
    font-size: 14px;
    color: #555;
    outline: none;
}
.reset-field-row input:focus {
    border-color: #3379B3;
}
.captcha-box {
    display: inline-block;
    border: 1px solid #AAAAAA;
    border-radius: 2px;
    overflow: hidden;
    line-height: 0;
    cursor: pointer;
    flex: 0 0 auto;
}
.captcha-refresh-btn {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border: none;
    background: none;
    cursor: pointer;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.captcha-refresh-btn:hover { color: #3379B3; }
.captcha-refresh-btn svg { width: 16px; height: 16px; }

.reset-error {
    text-align: center;
    color: #ff0000;
    font-size: 13px;
    margin: -8px 0 14px;
}
.reset-error.f-dn { display: none; }

.reset-next-btn {
    display: block;
    width: 100%;
    height: 44px;
    background: #3379B3;
    color: #fff;
    font-size: 15px;
    font-weight: bold;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: background-color .15s ease;
}
.reset-next-btn:hover { background: #2C6690; }

.reset-modal-footer {
    border-top: 1px solid #E3E4E5;
    padding: 16px 60px;
    text-align: right;
    font-size: 13px;
    color: #AAAAAA;
}
.reset-modal-footer a { color: #AAAAAA; }
.reset-modal-footer a:hover { color: #3379B3; }

/* ==========================================================================
   MOBILE — plain single-step page, no photo (matches real mobile screenshots
   exactly, which use a completely different, photo-free template)
   ========================================================================== */
@media (max-width: 760px) {
    .desktop-reset { display: none; }
    .mobile-reset { display: block; background: #fff; min-height: 100vh; }

    .mobile-header {
        position: relative;
        height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 20px;
    }
    .mobile-header .back-chevron {
        position: absolute;
        left: 16px;
        top: 50%;
        transform: translateY(-50%);
        color: #3983C6;
        font-size: 26px;
        line-height: 1;
        width: 28px;
        height: 28px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .mobile-header .mobile-title {
        font-size: 18px;
        color: #212121;
    }

    .mobile-h1 {
        font-size: 28px;
        font-weight: bold;
        color: #333333;
        padding: 40px 24px 30px;
    }

    .mobile-field {
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 14px 24px;
        border-bottom: 1px solid #E5E5E5;
    }
    .mobile-field .icon {
        width: 22px;
        height: 22px;
        flex: 0 0 22px;
        color: #AAAAAA;
    }
    .mobile-field input {
        flex: 1;
        min-width: 0;
        border: none;
        outline: none;
        font-size: 17px;
        color: #333;
    }
    .mobile-field input::placeholder { color: #AAAAAA; }
    .mobile-field .captcha-box { flex: 0 0 auto; }

    .mobile-error {
        color: #ff0000;
        font-size: 13px;
        text-align: center;
        margin-top: 14px;
    }
    .mobile-error.f-dn { display: none; }

    .mobile-next-btn {
        display: block;
        width: calc(100% - 48px);
        margin: 36px 24px 0;
        height: 50px;
        background: #A4CCE7;
        color: #fff;
        font-size: 17px;
        font-weight: bold;
        border: none;
        border-radius: 3px;
        cursor: pointer;
    }
    .mobile-next-btn:active { background: #8EC5E8; }
}
