html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    background: #f3f5f8;
    color: #1f2937;
    font-family: "HarmonyOS_Sans_SC_Regular", "Microsoft YaHei", Arial, sans-serif;
}

button,
input {
    font-family: inherit;
}

[v-cloak] {
    display: none;
}

.password-reset-page,
.password-reset-page * {
    box-sizing: border-box;
}

.password-reset-page {
    min-height: 100vh;
    background:
        linear-gradient(180deg, #ffffff 0, #ffffff 76px, transparent 76px),
        linear-gradient(135deg, rgba(0, 115, 230, 0.035), transparent 42%),
        #f3f5f8;
}

.password-reset-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1120px, calc(100% - 48px));
    height: 76px;
    margin: 0 auto;
}

.password-reset-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #1f2937;
    text-decoration: none;
}

.password-reset-brand__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #0073e6;
    color: #ffffff;
    font-size: 17px;
    font-weight: 700;
}

.password-reset-brand strong,
.password-reset-brand small {
    display: block;
}

.password-reset-brand strong {
    font-size: 16px;
    line-height: 1.25;
}

.password-reset-brand small {
    margin-top: 3px;
    color: #8a94a3;
    font-size: 11px;
    letter-spacing: 1px;
}

.password-reset-header__back {
    color: #526071;
    font-size: 13px;
    text-decoration: none;
}

.password-reset-header__back:hover,
.password-reset-form__back:hover,
.password-reset-refresh:hover {
    color: #0073e6;
}

.password-reset-main {
    display: flex;
    justify-content: center;
    padding: 54px 24px 70px;
}

.password-reset-card {
    width: 100%;
    max-width: 620px;
    padding: 36px 46px 30px;
    border: 1px solid #e1e6ec;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 16px 44px rgba(31, 41, 55, 0.07);
}

.password-reset-card__head {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.password-reset-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #edf6ff;
    font-size: 23px;
}

.password-reset-card__eyebrow {
    margin: 0 0 5px;
    color: #0073e6;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.password-reset-card__head h1 {
    margin: 0;
    color: #1f2937;
    font-size: 25px;
    line-height: 1.3;
}

.password-reset-card__head > div > p:last-child {
    margin: 7px 0 0;
    color: #7a8492;
    font-size: 13px;
    line-height: 1.65;
}

.password-reset-steps {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    margin-top: 28px;
    padding: 16px 20px;
    border-radius: 12px;
    background: #f6f8fa;
}

.password-reset-step {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #98a1ad;
}

.password-reset-step span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border: 1px solid #d9dfe6;
    border-radius: 50%;
    background: #ffffff;
    font-size: 12px;
    font-weight: 700;
}

.password-reset-step strong,
.password-reset-step small {
    display: block;
}

.password-reset-step strong {
    font-size: 13px;
}

.password-reset-step small {
    margin-top: 3px;
    font-size: 10px;
    font-weight: 400;
}

.password-reset-step--active {
    color: #0073e6;
}

.password-reset-step--active span {
    border-color: #0073e6;
    background: #0073e6;
    color: #ffffff;
}

.password-reset-step__arrow {
    color: #c3cad3;
    font-size: 18px;
}

.password-reset-step__arrow--active {
    color: #0073e6;
}

.password-reset-form {
    margin-top: 26px;
}

.password-reset-field {
    margin-bottom: 18px;
}

.password-reset-field > label {
    display: block;
    margin-bottom: 8px;
    color: #465365;
    font-size: 13px;
    font-weight: 600;
}

.password-reset-input,
.password-reset-captcha {
    overflow: hidden;
    border: 1px solid #d9e0e8;
    border-radius: 10px;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.password-reset-input:focus-within {
    border-color: #4b9bea;
    box-shadow: 0 0 0 3px rgba(0, 115, 230, 0.09);
}

.password-reset-input input {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: none;
    background: transparent;
    color: #1f2937;
    font-size: 14px;
    outline: none;
}

.password-reset-input input::placeholder {
    color: #a4acb7;
}

.password-reset-captcha-row,
.password-reset-sms-row {
    display: flex;
    align-items: stretch;
    gap: 10px;
}

.password-reset-captcha-row .password-reset-input,
.password-reset-sms-row .password-reset-input {
    flex: 1 1 auto;
}

.password-reset-captcha {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 132px;
    padding: 0 8px;
}

.password-reset-refresh {
    display: inline-block;
    margin-top: 8px;
    color: #64748b;
    font-size: 12px;
    cursor: pointer;
}

.password-reset-code-btn {
    flex: 0 0 128px;
    border: 1px solid #b8d8f5;
    border-radius: 10px;
    background: #edf6ff;
    color: #0073e6;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.password-reset-code-btn:disabled {
    border-color: #e0e4e9;
    background: #f3f4f6;
    color: #9da5b0;
    cursor: not-allowed;
}

.password-reset-field--element .el-input__inner {
    height: 46px;
    padding: 0 44px 0 14px;
    border-color: #d9e0e8;
    border-radius: 10px;
    font-size: 14px;
}

.password-reset-field--element .el-input__inner:focus {
    border-color: #4b9bea;
    box-shadow: 0 0 0 3px rgba(0, 115, 230, 0.09);
}

.password-reset-submit {
    width: 100%;
    height: 46px;
    margin-top: 4px;
    border: none;
    border-radius: 10px;
    background: #0073e6;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.password-reset-submit:hover {
    background: #0066cc;
    box-shadow: 0 8px 18px rgba(0, 115, 230, 0.18);
}

.password-reset-form__back {
    display: block;
    margin-top: 18px;
    color: #64748b;
    font-size: 13px;
    text-align: center;
    text-decoration: none;
}

.password-reset-security-tip {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid #edf0f3;
    color: #84909f;
    font-size: 11px;
    line-height: 1.6;
}

.password-reset-security-tip strong {
    flex: 0 0 auto;
    color: #5f6b7a;
}

@media (max-width: 640px) {
    .password-reset-header {
        width: calc(100% - 32px);
    }

    .password-reset-brand small {
        display: none;
    }

    .password-reset-main {
        padding: 28px 16px 44px;
    }

    .password-reset-card {
        padding: 28px 22px 24px;
    }

    .password-reset-steps {
        gap: 8px;
        padding: 14px 12px;
    }

    .password-reset-step small {
        display: none;
    }

    .password-reset-card__icon {
        display: none;
    }
}
