/*******************************
 * 强制修改密码弹窗组件样式
 *******************************/

.forcePwd-overlay {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    padding: 24px 12px;
    overflow: auto;
    background: rgba(0, 0, 0, 0.42);
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

.forcePwd-overlay.is-visible {
    display: flex;
}

.forcePwd-dialog {
    position: relative;
    box-sizing: border-box;
    width: 550px;
    min-width: 0;
    max-width: 100%;
    max-height: calc(100vh - 48px);
    margin: auto;
    overflow: hidden;
    color: #303133;
    background: #fff url('../images/editpassword/diaogobg.png') no-repeat center top;
    background-size: 550px 530px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(28, 39, 68, 0.12);
}

.forcePwd-scroll {
    box-sizing: border-box;
    max-height: calc(100vh - 48px);
    overflow-x: hidden;
    overflow-y: auto;
}

.forcePwd-header {
    padding: 20px;
    line-height: 30px;
    letter-spacing: 0;
    text-align: left;
    font-family: Source Han Sans CN;
    font-weight: 500;
    font-size: 20px;
    color: #333333;
}

.forcePwd-close-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 1;
    width: 32px;
    height: 32px;
    padding: 0;
    overflow: hidden;
    font-size: 0;
    cursor: pointer;
    background: transparent url('../images/editpassword/close.png') no-repeat center;
    background-size: 15px 15px;
    border: 0;
}

.forcePwd-close-btn:hover {
    opacity: 0.72;
}

.forcePwd-body {
    padding: 0 20px;
}

.forcePwd-field {
    margin-bottom: 10px;
}

.forcePwd-confirm-field {
    margin-bottom: 0;
}

.forcePwd-label {
    margin-bottom: 12px;
    line-height: 22px;
    font-family: Source Han Sans CN;
    font-weight: 400;
    font-size: 16px;
    color: #333333;
    display: flex;
    align-items: center;
}

.forcePwd-label::before {
    display: inline-block;
    flex: 0 0 7px;
    margin-right: 7px;
    content: "*";
    width: 7px;
    font-family: Source Han Sans CN;
    font-weight: 400;
    font-size: 20px;
    color: #EC2813;
    line-height: 1;
    text-align: center;
    transform: translateY(2px);
}

.forcePwd-mobile-display,
.forcePwd-input-wrap,
.forcePwd-auth-code-wrap,
.forcePwd-code-wrap {
    box-sizing: border-box;
    width: 100%;
    height: 44px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #d9dde7;
    border-radius: 5px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.forcePwd-mobile-display {
    display: flex;
    align-items: center;
    padding: 0 12px;
    background: rgba(247, 248, 250, 0.94);
    font-family: Arial;
    font-weight: 400;
    font-size: 16px;
    color: #999999;
}

.forcePwd-mobile-display .country-code {
    position: relative;
    flex: 0 0 auto;
    margin-right: 17px;
    color: #8b909a;
}

/* .forcePwd-mobile-display .country-code::after {
    position: absolute;
    top: 3px;
    right: -15px;
    width: 6px;
    height: 6px;
    content: "";
    border-right: 2px solid #9ca1aa;
    border-bottom: 2px solid #9ca1aa;
    transform: rotate(45deg);
} */

.forcePwd-mobile-display .mobile-num {
    font-weight: 500;
    color: #5e6470;
    font-family: Arial;
    font-weight: 400;
    font-size: 16px;
    color: #666666;
    margin-left: 0;
}

.forcePwd-input-wrap,
.forcePwd-auth-code-wrap,
.forcePwd-code-wrap {
    display: flex;
    align-items: center;
}

.forcePwd-input-wrap:focus-within,
.forcePwd-auth-code-wrap:focus-within,
.forcePwd-code-wrap:focus-within {
    border-color: #8b909a;
    box-shadow: none;
}

.forcePwd-mobile-input-wrap,
.forcePwd-real-name-input-wrap {
    background: #ffffff;
    border-color: #b8bec8;
    cursor: text;
}

.forcePwd-mobile-input-wrap:hover,
.forcePwd-mobile-input-wrap:focus-within,
.forcePwd-real-name-input-wrap:hover,
.forcePwd-real-name-input-wrap:focus-within {
    border-color: #606875;
}

.forcePwd-mobile-input-wrap input,
.forcePwd-real-name-input-wrap input {
    color: #30343d;
    cursor: text;
}

.forcePwd-mobile-input-wrap.is-disabled,
.forcePwd-mobile-input-wrap.is-disabled:hover,
.forcePwd-mobile-input-wrap.is-disabled:focus-within,
.forcePwd-real-name-input-wrap.is-disabled,
.forcePwd-real-name-input-wrap.is-disabled:hover,
.forcePwd-real-name-input-wrap.is-disabled:focus-within {
    background: #f4f5f7;
    border-color: #d9dde7;
    cursor: not-allowed;
}

.forcePwd-mobile-input-wrap input:disabled,
.forcePwd-real-name-input-wrap input:disabled {
    color: #7c828c;
    cursor: not-allowed;
    opacity: 1;
    -webkit-text-fill-color: #7c828c;
}

.forcePwd-mobile-hint {
    margin-top: 6px;
    color: #7c828c;
    font-size: 13px;
    line-height: 20px;
}

.forcePwd-mobile-edit-btn {
    padding: 0 2px;
    color: #315dc9;
    font: inherit;
    line-height: inherit;
    cursor: pointer;
    background: transparent;
    border: 0;
    outline: 0;
}

.forcePwd-mobile-edit-btn:hover,
.forcePwd-mobile-edit-btn:focus {
    color: #2349a7;
    text-decoration: underline;
}

.forcePwd-input-wrap input,
.forcePwd-auth-code-wrap input,
.forcePwd-code-wrap input {
    min-width: 0;
    height: 42px;
    padding: 0 12px;
    font-family: inherit;
    font-size: 15px;
    line-height: 42px;
    color: #30343d;
    background: transparent;
    border: 0;
    outline: 0;
}

.forcePwd-input-wrap input {
    flex: 1;
}

.forcePwd-auth-code-wrap input {
    flex: 1 1 auto;
}

.forcePwd-auth-code-refresh {
    position: relative;
    align-self: stretch;
    flex: 0 0 112px;
    padding: 0;
    overflow: hidden;
    cursor: pointer;
    background: #f7f8fa;
    border: 0;
    border-left: 1px solid #d9dde7;
    border-radius: 0 5px 5px 0;
    outline: 0;
}

.forcePwd-auth-code-refresh img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.forcePwd-auth-code-status {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    font-size: 12px;
    line-height: 16px;
    color: #747983;
    text-align: center;
}

.forcePwd-auth-code-refresh.is-loading img,
.forcePwd-auth-code-refresh.is-error img {
    visibility: hidden;
}

.forcePwd-auth-code-refresh.is-loading .forcePwd-auth-code-status,
.forcePwd-auth-code-refresh.is-error .forcePwd-auth-code-status {
    display: flex;
}

.forcePwd-auth-code-refresh.is-error .forcePwd-auth-code-status {
    color: #e5484d;
}

.forcePwd-auth-code-refresh:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}

.forcePwd-code-wrap {
    padding: 2px;
}

.forcePwd-code-wrap input {
    flex: 1 1 auto;
}

.forcePwd-input-wrap input::placeholder,
.forcePwd-auth-code-wrap input::placeholder,
.forcePwd-code-wrap input::placeholder {
    color: #b7bbc4;
}

.forcePwd-code-btn {
    align-self: stretch;
    flex: 0 0 106px;
    padding: 0 14px;
    color: #fff;
    white-space: nowrap;
    cursor: pointer;
    background: #4f73f3;
    border: 0;
    border-radius: 5px;
    outline: 0;
    font-family: Source Han Sans CN;
    font-weight: 400;
    font-size: 14px;
    color: #F9FAFF;
}

.forcePwd-code-btn:hover {
    background: #4266e6;
}

.forcePwd-code-btn:disabled {
    color: #fff;
    cursor: not-allowed;
    background: #aab8ed;
}

.forcePwd-code-text {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    line-height: normal;
    text-align: center;
}

.forcePwd-eye-btn {
    flex: 0 0 40px;
    width: 40px;
    height: 42px;
    margin: 0;
    padding: 0;
    cursor: pointer;
    background: url('../images/editpassword/eye.png') no-repeat center;
    background-size: 20px 20px;
    border: 0;
    outline: 0;
}


.forcePwd-eye-btn.is-password-visible {
    background-image: url('../images/editpassword/noeye.png');
}

/* 顶部冒泡提示（类似 Element UI 的 Message） */
.forcePwd-toast-wrap {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10000;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding-top: 20px;
    pointer-events: none;
}

.forcePwd-toast {
    max-width: calc(100vw - 32px);
    padding: 10px 18px;
    font-size: 14px;
    line-height: 20px;
    color: #5e6470;
    word-break: break-all;
    pointer-events: auto;
    background: #edf2fc;
    border: 1px solid #e6ebf5;
    border-radius: 4px;
    box-shadow: 0 6px 16px rgba(31, 45, 61, 0.1);
    animation: forcePwd-toast-in 0.3s ease-out both;
}

.forcePwd-toast + .forcePwd-toast {
    margin-top: 10px;
}

.forcePwd-toast::before {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 8px;
    content: "";
    vertical-align: 2px;
    background: currentColor;
    border-radius: 50%;
}

.forcePwd-toast.success {
    color: #249d63;
    background: #f0f9eb;
    border-color: #e1f3d8;
}

.forcePwd-toast.error {
    color: #e5484d;
    background: #fef0f0;
    border-color: #fde2e2;
}

.forcePwd-toast.is-closing {
    animation: forcePwd-toast-out 0.3s ease-in both;
}

@keyframes forcePwd-toast-in {
    0% {
        opacity: 0;
        transform: translateY(-16px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes forcePwd-toast-out {
    0% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(-16px);
    }
}

.forcePwd-footer {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
    padding: 25px 50px 22px;
}

.forcePwd-btn {
    box-sizing: border-box;
    width: auto;
    height: 44px;
    padding: 0 18px;
    font-family: inherit;
    font-size: 14px;
    line-height: 42px;
    cursor: pointer;
    border-radius: 6px;
    outline: 0;
}

.forcePwd-btn-cancel {
    min-width: 82px;
    color: #747983;
    background: #fff;
    border: 1px solid #d9dde5;
}

.forcePwd-btn-cancel:hover {
    color: #4f73f3;
    border-color: #8ea3fa;
}

.forcePwd-btn-submit {
    width: 116px;
    height: 44px;
    border: none;
    background: linear-gradient(90deg, #8098F9, #4162E9);
    border-radius: 6px;
    font-family: Source Han Sans CN;
    font-weight: 400;
    font-size: 16px;
    color: #FFFFFF;
    line-height: 30px;
}

.forcePwd-btn-submit:hover {
    background: #4266e6;
    border-color: #4266e6;
}

.forcePwd-btn-submit:disabled {
    cursor: not-allowed;
    background: #aab8ed;
    border-color: #aab8ed;
}

.forcePwd-warning {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 550px;
    max-width: 100%;
    height: 48px;
    padding: 0 20px;
    line-height: 20px;
    color: #ff5b52;
    text-align: center;
    background: #fff;
    border-radius: 0;
    box-shadow: inset 0 -18px 24px -4px rgba(228, 48, 30, 0.28);
    font-family: Source Han Sans CN;
    font-weight: 400;
    font-size: 14px;
    color: #F05948;
}

.forcePwd-warning .warning-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 6px;
    vertical-align: -3px;
    background: url('../images/editpassword/tips.png') no-repeat center;
    background-size: 16px 16px;
}

@media only screen and (max-width: 600px) {
    .forcePwd-overlay {
        align-items: center;
        padding: 12px;
    }

    .forcePwd-dialog {
        width: calc(100vw - 24px);
        min-width: 0;
        max-height: calc(100vh - 24px);
        margin: auto;
        border-radius: 10px 10px 8px 8px;
        background-size: 100% auto;
    }

    .forcePwd-scroll {
        max-height: calc(100vh - 24px);
    }

    .forcePwd-header {
        padding: 24px 22px 18px;
        font-size: 20px;
    }

    .forcePwd-close-btn {
        top: 12px;
        right: 10px;
    }

    .forcePwd-body {
        padding: 0 22px;
    }

    .forcePwd-field {
        margin-bottom: 16px;
    }

    .forcePwd-label {
        margin-bottom: 7px;
        font-size: 14px;
    }

    .forcePwd-mobile-display,
    .forcePwd-input-wrap,
    .forcePwd-auth-code-wrap,
    .forcePwd-code-wrap {
        height: 44px;
    }

    .forcePwd-input-wrap input,
    .forcePwd-auth-code-wrap input,
    .forcePwd-code-wrap input {
        height: 42px;
        padding: 0 12px;
        font-size: 14px;
        line-height: 42px;
    }

    .forcePwd-code-btn {
        flex-basis: 108px;
        padding: 0 10px;
        font-size: 14px;
        line-height: 44px;
    }

    .forcePwd-auth-code-refresh {
        flex-basis: 108px;
    }

    .forcePwd-eye-btn {
        height: 42px;
    }

    .forcePwd-footer {
        gap: 10px;
        padding: 4px 22px 20px;
    }

    .forcePwd-btn {
        flex: 1 1 0;
        min-width: 0;
        height: 44px;
        padding: 0 12px;
        font-size: 15px;
        line-height: 42px;
    }

    .forcePwd-warning {
        height: auto;
        min-height: 48px;
        padding: 11px 16px;
        font-size: 12px;
    }
}
