/* ===== Find Password Page ===== */
.findpwd-page {
    margin-top: var(--header-height);
    background: var(--bg-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 48px 20px 60px;
}

.findpwd-card {
    width: 100%;
    max-width: 560px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.findpwd-header {
    text-align: center;
    padding: 32px 32px 0;
}

.findpwd-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
}

/* Step Indicator */
.findpwd-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0 32px;
    margin-bottom: 8px;
}

.findpwd-steps .step-item {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.findpwd-steps .step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    background: var(--bg-gray);
    color: var(--text-light);
    border: 2px solid var(--border-color);
    transition: var(--transition);
    flex-shrink: 0;
}

.findpwd-steps .step-label {
    font-size: 0.88rem;
    color: var(--text-light);
    font-weight: 500;
    white-space: nowrap;
    transition: var(--transition);
}

.findpwd-steps .step-item.on .step-circle {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.findpwd-steps .step-item.on .step-label {
    color: var(--primary);
    font-weight: 600;
}

.findpwd-steps .step-line {
    width: 48px;
    height: 2px;
    background: var(--border-color);
    margin: 0 12px;
    flex-shrink: 0;
    border-radius: 1px;
}

/* Form Area */
.findpwd-form {
    padding: 28px 32px 36px;
}

.findpwd-form .form-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.findpwd-form .form-list > li {
    margin-bottom: 20px;
}

.findpwd-form .form-list > li:last-child {
    margin-bottom: 0;
}

.findpwd-form .form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

/* Tab Nav (Mobile / Email toggle) */
.findpwd-tabnav {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    padding: 3px;
    width: fit-content;
}

.findpwd-tabnav span {
    padding: 8px 28px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 4px;
    transition: var(--transition);
    user-select: none;
}

.findpwd-tabnav span.on {
    background: var(--bg-white);
    color: var(--primary);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.findpwd-tabnav span:hover:not(.on) {
    color: var(--text-primary);
}

/* Input Fields */
.findpwd-form .fp-input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    color: var(--text-primary);
    background: var(--bg-white);
    transition: var(--transition);
    font-family: inherit;
}

.findpwd-form .fp-input::placeholder {
    color: var(--text-light);
}

.findpwd-form .fp-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(126, 118, 106, 0.1);
    outline: none;
}

.findpwd-form .reg-text {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    color: var(--text-primary);
    background: var(--bg-white);
    transition: var(--transition);
    font-family: inherit;
}

.findpwd-form .reg-text::placeholder {
    color: var(--text-light);
}

.findpwd-form .reg-text:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(126, 118, 106, 0.1);
    outline: none;
}

/* Phone Area Component Override */
.findpwd-form .entry-text-area {
    width: 100%;
}

.findpwd-form .phone-area-text {
    display: flex;
    align-items: center;
    width: 100%;
}

.findpwd-form .phone-area-component {
    position: relative;
}

.findpwd-form .phone-area-component .area-text {
    height: 48px;
    line-height: 48px;
    padding: 0 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    font-size: 0.9rem;
    color: var(--text-primary);
    background: var(--bg-light);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    user-select: none;
}

.findpwd-form .phone-area-component .area-text:hover {
    border-color: var(--primary);
    background: var(--bg-white);
}

.findpwd-form .phone-area-component .phone-input {
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0 !important;
    border-left: none !important;
}

.findpwd-form .phone-area-component .phone-input:focus {
    border-left: none !important;
}

.findpwd-form .phone-area-down {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    z-index: 100;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    width: 320px;
    max-height: 360px;
    overflow: hidden;
}

.findpwd-form .phone-area-down .area-search {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
}

.findpwd-form .phone-area-down .area-search .search-box {
    position: relative;
}

.findpwd-form .phone-area-down .area-search .search-box input {
    width: 100%;
    height: 38px;
    padding: 0 36px 0 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    color: var(--text-primary);
    background: var(--bg-light);
    transition: var(--transition);
}

.findpwd-form .phone-area-down .area-search .search-box input:focus {
    border-color: var(--primary);
    background: var(--bg-white);
}

.findpwd-form .phone-area-down .area-search .search-box .ico {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    cursor: pointer;
    opacity: 0.5;
    transition: var(--transition);
}

.findpwd-form .phone-area-down .area-search .search-box .ico:hover {
    opacity: 1;
}

.findpwd-form .phone-area-down .area-search .search-txt {
    font-size: 0.78rem;
    color: var(--text-light);
    margin-top: 6px;
}

.findpwd-form .phone-area-down .area-list {
    max-height: 260px;
    overflow-y: auto;
    padding: 6px 0;
}

.findpwd-form .phone-area-down .area-list::-webkit-scrollbar {
    width: 4px;
}

.findpwd-form .phone-area-down .area-list::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 2px;
}

.findpwd-form .phone-area-down .area-item {
    padding: 10px 16px;
    font-size: 0.88rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
}

.findpwd-form .phone-area-down .area-item:hover {
    background: var(--bg-light);
}

.findpwd-form .phone-area-down .area-item.on {
    color: var(--primary);
    font-weight: 600;
    background: var(--primary-light);
}

/* Captcha Row */
.findpwd-form .captcha-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.findpwd-form .captcha-row .reg-text {
    width: 140px;
    flex-shrink: 0;
}

.findpwd-form .captcha-img {
    height: 48px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 1px solid var(--border-color);
    object-fit: cover;
    transition: var(--transition);
}

.findpwd-form .captcha-img:hover {
    opacity: 0.85;
}

.findpwd-form .captcha-change {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: var(--transition);
}

.findpwd-form .captcha-change:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Error / Success Messages */
.findpwd-form .msg_contain {
    display: block;
    font-size: 0.82rem;
    min-height: 0;
    margin-top: 4px;
}

.findpwd-form .reg-error-txt {
    color: #e53e3e;
    font-size: 0.82rem;
    line-height: 1.4;
    padding: 2px 0;
}

.findpwd-form .reg-pass-ico {
    color: var(--box);
    font-size: 0.82rem;
}

/* Submit Button */
.findpwd-form .fp-submit {
    margin-top: 28px;
}

.findpwd-form .fp-submit a {
    display: block;
    width: 100%;
    height: 50px;
    line-height: 50px;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: var(--primary);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    letter-spacing: 0.5px;
}

.findpwd-form .fp-submit a:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Width helpers (legacy compat) */
.findpwd-form .w230 {
    width: 100%;
    max-width: 280px;
}

.findpwd-form .w105 {
    width: 140px;
}

/* Legacy overrides */
.findpwd-form .reg-yzm {
    display: inline-flex;
    align-items: center;
    border: none;
    margin: 0;
    height: auto;
}

.findpwd-form .reg-change {
    float: none;
    display: inline-flex;
    align-items: center;
    height: auto;
    line-height: normal;
    margin: 0;
}

.findpwd-form .reg-change a {
    color: var(--primary);
}

/* ===== Responsive: Tablet ===== */
@media (max-width: 768px) {
    .findpwd-page {
        padding: 32px 16px 48px;
    }

    .findpwd-card {
        max-width: 100%;
    }

    .findpwd-header {
        padding: 24px 24px 0;
    }

    .findpwd-header h2 {
        font-size: 1.3rem;
    }

    .findpwd-steps {
        padding: 0 24px;
    }

    .findpwd-form {
        padding: 24px 24px 32px;
    }

    .findpwd-steps .step-line {
        width: 32px;
        margin: 0 8px;
    }
}

/* ===== Responsive: Mobile ===== */
@media (max-width: 480px) {
    .findpwd-page {
        padding: 24px 12px 40px;
    }

    .findpwd-header {
        padding: 20px 20px 0;
    }

    .findpwd-header h2 {
        font-size: 1.15rem;
        margin-bottom: 18px;
    }

    .findpwd-steps {
        padding: 0 20px;
    }

    .findpwd-steps .step-circle {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }

    .findpwd-steps .step-label {
        font-size: 0.8rem;
    }

    .findpwd-steps .step-line {
        width: 24px;
        margin: 0 6px;
    }

    .findpwd-form {
        padding: 20px 20px 28px;
    }

    .findpwd-form .fp-input,
    .findpwd-form .reg-text {
        height: 44px;
        font-size: 0.9rem;
    }

    .findpwd-form .phone-area-component .area-text {
        height: 44px;
        line-height: 44px;
        font-size: 0.85rem;
    }

    .findpwd-tabnav span {
        padding: 7px 20px;
        font-size: 0.85rem;
    }

    .findpwd-form .captcha-row .reg-text {
        width: 110px;
    }

    .findpwd-form .captcha-img {
        height: 44px;
    }

    .findpwd-form .fp-submit a {
        height: 46px;
        line-height: 46px;
        font-size: 0.95rem;
    }

    .findpwd-form .phone-area-down {
        width: 280px;
    }
}

/* ===== Step2: Account Display ===== */
.findpwd-form .account-display {
    display: inline-flex;
    align-items: center;
    height: 48px;
    padding: 0 16px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: 0.3px;
}

/* ===== Step2: SMS Code Row ===== */
.findpwd-form .sms-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.findpwd-form .sms-row .reg-text {
    width: 160px;
    flex-shrink: 0;
}

.findpwd-form .fp-send-btn {
    height: 48px;
    padding: 0 20px;
    border: 1px solid var(--primary);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
}

.findpwd-form .fp-send-btn:hover:not(:disabled) {
    background: var(--primary);
    color: #fff;
}

.findpwd-form .fp-send-btn:disabled {
    border-color: var(--border-color);
    color: var(--text-light);
    cursor: not-allowed;
    opacity: 0.7;
}

/* ===== Password Strength Indicator ===== */
.findpwd-form .complex_contain {
    display: block;
    margin-top: 6px;
}

.findpwd-form .reg-pw-intensity {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 500;
    padding: 3px 12px;
    border-radius: 12px;
    background-image: none !important;
    padding-left: 0;
    height: auto;
    line-height: normal;
    margin: 0;
}

.findpwd-form .reg-pw-intensity::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.findpwd-form .reg-pw-intensity.ruo {
    color: #e53e3e;
}

.findpwd-form .reg-pw-intensity.ruo::before {
    background: #e53e3e;
}

.findpwd-form .reg-pw-intensity.zhong {
    color: #d69e2e;
}

.findpwd-form .reg-pw-intensity.zhong::before {
    background: #d69e2e;
}

.findpwd-form .reg-pw-intensity.gao {
    color: var(--box);
}

.findpwd-form .reg-pw-intensity.gao::before {
    background: var(--box);
}

/* ===== Step3: Success Page ===== */
.findpwd-success {
    text-align: center;
    padding: 48px 32px 56px;
}

.findpwd-success .success-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: var(--box);
    display: flex;
    align-items: center;
    justify-content: center;
}

.findpwd-success .success-icon svg {
    width: 36px;
    height: 36px;
    stroke: #fff;
    stroke-width: 3;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.findpwd-success .success-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.findpwd-success .success-countdown {
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.findpwd-success .success-countdown #second {
    display: inline-block;
    font-weight: 700;
    color: var(--primary);
    min-width: 20px;
}

.findpwd-success .success-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.findpwd-success .success-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 32px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
    text-decoration: none;
}

.findpwd-success .success-actions .btn-home {
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    background: var(--bg-white);
}

.findpwd-success .success-actions .btn-home:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.findpwd-success .success-actions .btn-login {
    background: var(--primary);
    color: #fff;
}

.findpwd-success .success-actions .btn-login:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* ===== Responsive: Success Page ===== */
@media (max-width: 480px) {
    .findpwd-success {
        padding: 36px 20px 44px;
    }

    .findpwd-success .success-icon {
        width: 60px;
        height: 60px;
    }

    .findpwd-success .success-icon svg {
        width: 30px;
        height: 30px;
    }

    .findpwd-success .success-title {
        font-size: 1.1rem;
    }

    .findpwd-success .success-actions {
        flex-direction: column;
        gap: 12px;
    }

    .findpwd-success .success-actions a {
        width: 100%;
        max-width: 280px;
    }
}

/* ===== Error Page ===== */
.findpwd-error {
    text-align: center;
    padding: 48px 32px 56px;
}

.findpwd-error .error-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: #e53e3e;
    display: flex;
    align-items: center;
    justify-content: center;
}

.findpwd-error .error-icon svg {
    width: 36px;
    height: 36px;
    stroke: #fff;
    stroke-width: 3;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.findpwd-error .error-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.findpwd-error .error-msg {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.6;
}

.findpwd-error .error-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.findpwd-error .error-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 32px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
    text-decoration: none;
}

.findpwd-error .error-actions .btn-back {
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    background: var(--bg-white);
}

.findpwd-error .error-actions .btn-back:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.findpwd-error .error-actions .btn-retry {
    background: var(--primary);
    color: #fff;
}

.findpwd-error .error-actions .btn-retry:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* ===== Responsive: Error Page ===== */
@media (max-width: 480px) {
    .findpwd-error {
        padding: 36px 20px 44px;
    }

    .findpwd-error .error-icon {
        width: 60px;
        height: 60px;
    }

    .findpwd-error .error-icon svg {
        width: 30px;
        height: 30px;
    }

    .findpwd-error .error-title {
        font-size: 1.1rem;
    }

    .findpwd-error .error-actions {
        flex-direction: column;
        gap: 12px;
    }

    .findpwd-error .error-actions a {
        width: 100%;
        max-width: 280px;
    }
}