/*
 * 认证页编辑式布局。
 * 所有规则都以 .auth-page 开头，避免被站点旧版 header/nav/article 规则污染，
 * 也不影响个人中心等其它账户页面。
 */
body.auth-document {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

body.auth-document > header#header {
    flex: 0 0 auto;
}

body.auth-document > .auth-page {
    flex: 1 0 auto;
}

body.auth-document > footer {
    position: relative;
    flex: 0 0 auto;
    margin-top: 0;
}

.auth-page {
    --auth-red: #ad1d24;
    --auth-red-dark: #8f151b;
    --auth-ink: #20201f;
    --auth-muted: #766f68;
    --auth-line: #ddd5cc;
    --auth-paper: #f7f4ee;
    --auth-panel: #fcfbf8;
    box-sizing: border-box;
    width: auto !important;
    min-height: 0;
    margin: 0 !important;
    padding: 54px 24px 84px;
    overflow: visible !important;
    background: var(--auth-paper);
    color: var(--auth-ink);
    font-family: "Noto Serif SC", "Songti SC", "STSong", Georgia, serif;
}

.auth-page *,
.auth-page *::before,
.auth-page *::after {
    box-sizing: border-box;
}

.auth-page .auth-editorial {
    display: grid;
    grid-template-columns: minmax(180px, 260px) minmax(0, 520px) minmax(180px, 260px);
    gap: 40px;
    width: min(1120px, 100%);
    min-height: 0;
    margin: 0 auto;
    align-items: stretch;
}

.auth-page .auth-editorial__rail {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 0 0 18px;
}

.auth-page .auth-editorial__rail--right {
    padding: 38px 0 18px 36px;
    border-left: 1px solid var(--auth-line);
}

.auth-page .auth-editorial__rule,
.auth-page .auth-editorial__short-rule {
    display: block;
    width: 82px;
    height: 2px;
    background: var(--auth-red);
}

.auth-page .auth-editorial__short-rule {
    width: 50px;
    margin: 0 0 24px;
}

.auth-page .auth-editorial__title {
    margin: 34px 0 26px;
    color: var(--auth-ink);
    font-size: clamp(27px, 2.4vw, 36px);
    font-weight: 600;
    line-height: 1.45;
    letter-spacing: .04em;
}

.auth-page .auth-editorial__rail--right .auth-editorial__title {
    margin: 0 0 28px;
    color: #6f6963;
    font-size: clamp(22px, 2.1vw, 29px);
    font-weight: 500;
    line-height: 1.65;
}

.auth-page .auth-editorial__copy,
.auth-page .auth-editorial__note,
.auth-page .auth-editorial__bottom-note {
    margin: 0;
    color: var(--auth-muted);
    font-size: 16px;
    line-height: 2.05;
    letter-spacing: .08em;
}

.auth-page .auth-editorial__note {
    margin-top: auto;
    color: #8f8880;
    font-size: 15px;
    line-height: 2.4;
}

.auth-page .auth-editorial__signature {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-top: 40px;
    color: #7c272b;
    font-size: 13px;
    line-height: 1.8;
    letter-spacing: .08em;
}

.auth-page .auth-editorial__signature strong {
    color: var(--auth-red);
    font-size: 21px;
    font-weight: 600;
    letter-spacing: .16em;
}

.auth-page .auth-editorial__signature span:last-child {
    color: #8f8880;
    font-size: 13px;
}

.auth-page .auth-editorial__letters {
    margin: 0;
    color: #9c958d;
    font-family: Arial, sans-serif;
    font-size: 11px;
    letter-spacing: .34em;
    line-height: 1.8;
    white-space: normal;
}

.auth-page .auth-editorial__bottom-note {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: auto;
    color: #8c857d;
    font-size: 14px;
}

.auth-page .auth-editorial__bottom-note .auth-editorial__short-rule {
    margin-bottom: 20px;
}

.auth-page .auth-card {
    position: relative;
    z-index: 1;
    width: 100%;
    min-width: 0;
    min-height: 0;
    padding: 54px 72px 46px;
    border: 1px solid #eee9e2;
    border-top: 0;
    border-bottom: 0;
    border-left: 3px solid var(--auth-red);
    background: rgba(255, 255, 255, .44);
}

.auth-page .auth-card__eyebrow {
    margin: 0 0 24px;
    color: #9a9189;
    font-family: Arial, sans-serif;
    font-size: 11px;
    letter-spacing: .18em;
    line-height: 1.5;
    text-transform: uppercase;
}

.auth-page .auth-card__heading {
    margin: 0 0 12px;
    color: var(--auth-ink);
    font-size: clamp(36px, 4vw, 52px);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: .08em;
    text-align: left;
}

.auth-page .auth-card__mark {
    display: block;
    width: 56px;
    height: 3px;
    margin: 0 0 24px;
    background: var(--auth-red);
}

.auth-page .auth-card__subtitle {
    margin: 0 0 42px;
    color: #766f68;
    font-size: 16px;
    line-height: 1.8;
    letter-spacing: .04em;
    text-align: left;
}

.auth-page .auth-card .el-form {
    width: 100%;
}

.auth-page .auth-card .el-form-item {
    margin: 0 0 24px;
}

.auth-page .auth-card .el-form-item__label {
    float: none;
    display: block;
    width: auto !important;
    height: auto;
    padding: 0 0 9px;
    color: var(--auth-ink);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
}

.auth-page .auth-card .el-form-item__content {
    margin-left: 0 !important;
    line-height: normal;
}

.auth-page .auth-card .el-input,
.auth-page .auth-card .el-input__inner {
    width: 100%;
}

.auth-page .auth-card .el-input__inner {
    height: 50px;
    padding: 0 14px;
    border: 1px solid #cfc7be;
    border-radius: 0;
    background: var(--auth-panel);
    color: var(--auth-ink);
    font-family: inherit;
    font-size: 15px;
    line-height: 50px;
    box-shadow: none;
    transition: border-color 220ms ease, box-shadow 220ms ease, background-color 220ms ease;
}

.auth-page .auth-card .el-input__inner:hover {
    border-color: #9d9187;
}

.auth-page .auth-card .el-input__inner:focus {
    border-color: var(--auth-red);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(173, 29, 36, .14);
}

.auth-page .auth-card .el-input__inner::placeholder {
    color: #aaa39c;
}

.auth-page .auth-card__captcha-trigger {
    width: 100%;
    min-height: 54px;
    margin-top: 7px;
    padding: 0 20px;
    border: 1px solid var(--auth-red);
    border-radius: 0;
    background: var(--auth-red);
    color: #fff;
    font-family: inherit;
    font-size: 17px;
    letter-spacing: .22em;
    transition: background-color 220ms ease, border-color 220ms ease, transform 220ms ease;
}

.auth-page .auth-card__captcha-trigger:hover,
.auth-page .auth-card__captcha-trigger:focus {
    border-color: var(--auth-red-dark);
    background: var(--auth-red-dark);
}

.auth-page .auth-card__captcha-trigger:active {
    transform: translateY(1px);
}

.auth-page .auth-card__links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 13px;
    margin: 31px 0 0;
    color: #b1aaa2;
    font-family: "Noto Serif SC", "Songti SC", serif;
    font-size: 14px;
    line-height: 1.5;
}

.auth-page .auth-card__links a {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    color: #716a63;
    text-decoration: none;
    transition: color 220ms ease, transform 220ms ease;
}

.auth-page .auth-card__links a:hover {
    color: var(--auth-red);
    transform: translateY(-1px);
}

.auth-page .auth-card__trust {
    margin: 48px 0 0;
    color: #8f8880;
    font-size: 13px;
    line-height: 1.7;
    text-align: center;
    letter-spacing: .08em;
}

.auth-page .auth-card__captcha-host {
    position: fixed !important;
    z-index: 10000;
    inset: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible;
    pointer-events: none;
}

.auth-page .auth-card__captcha-host .mask {
    z-index: 10010 !important;
    pointer-events: auto;
}

.auth-page .auth-card__captcha-host .verifybox {
    z-index: 10011;
    pointer-events: auto;
}

.auth-page .auth-card__sms-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 132px;
    gap: 10px;
    align-items: start;
}

.auth-page .auth-card__sms-row .el-button {
    width: 100%;
    min-height: 50px;
    margin: 0;
    padding: 0 10px;
    border: 1px solid #b8aea4;
    border-radius: 0;
    background: transparent;
    color: var(--auth-red);
    font-family: inherit;
    font-size: 13px;
    line-height: 48px;
    white-space: nowrap;
    transition: border-color 220ms ease, color 220ms ease, background-color 220ms ease;
}

.auth-page .auth-card__sms-row .el-button:hover,
.auth-page .auth-card__sms-row .el-button:focus {
    border-color: var(--auth-red);
    background: rgba(173, 29, 36, .05);
    color: var(--auth-red-dark);
}

.auth-page .auth-card__sms-row .el-button.is-disabled,
.auth-page .auth-card__sms-row .el-button.is-disabled:hover {
    border-color: #d5cec6;
    background: #f0ece7;
    color: #a8a098;
}

.auth-page a:focus-visible,
.auth-page button:focus-visible,
.auth-page .el-input__inner:focus-visible {
    outline: 3px solid rgba(173, 29, 36, .42);
    outline-offset: 3px;
}

@media screen and (max-width: 900px) {
    .auth-page {
        padding-right: 20px;
        padding-left: 20px;
    }

    .auth-page .auth-editorial {
        grid-template-columns: minmax(150px, 210px) minmax(0, 520px);
        gap: 28px;
        width: min(760px, 100%);
    }

    .auth-page .auth-editorial__rail--right {
        display: none;
    }

    .auth-page .auth-card {
        padding-right: 50px;
        padding-left: 50px;
    }
}

@media screen and (max-width: 680px) {
    .auth-page {
        min-height: 0;
        padding: 28px 14px 56px;
    }

    .auth-page .auth-editorial {
        display: block;
        min-height: 0;
        width: 100%;
    }

    .auth-page .auth-editorial__rail {
        display: none;
    }

    .auth-page .auth-card {
        min-height: 0;
        padding: 36px 22px 32px;
        border-right: 1px solid #eee9e2;
    }

    .auth-page .auth-card__eyebrow {
        margin-bottom: 20px;
    }

    .auth-page .auth-card__heading {
        font-size: 38px;
    }

    .auth-page .auth-card__subtitle {
        margin-bottom: 32px;
        font-size: 15px;
    }

    .auth-page .auth-card .el-form-item {
        margin-bottom: 21px;
    }

    .auth-page .auth-card__trust {
        margin-top: 38px;
    }

    .auth-page .auth-card__sms-row {
        grid-template-columns: minmax(0, 1fr) 112px;
        gap: 8px;
    }

    .auth-page .auth-card__links {
        gap: 8px;
        margin-top: 26px;
    }

    .auth-page .auth-card__links a {
        min-height: 44px;
        padding: 4px 2px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-page *,
    .auth-page *::before,
    .auth-page *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
