:root {
    color-scheme: light;
    --auth-ink: #1d372c;
    --auth-forest: #245c47;
    --auth-leaf: #17432f;
    --auth-muted: #56665b;
    --auth-cream: #f5f2e9;
    --auth-border: #d5ded4;
}
*, *::before, *::after { box-sizing: border-box; }
body.hzh-auth {
    margin: 0;
    min-height: 100vh;
    padding: 0 32px 48px;
    color: var(--auth-ink);
    background: radial-gradient(ellipse at 85% 4%, #e8eee3 0%, transparent 45%), var(--auth-cream);
    font: 16px/1.5 "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
}
.hzh-auth a { color: inherit; }
.hzh-auth a:focus-visible, .hzh-auth button:focus-visible {
    outline: 2px solid var(--auth-forest);
    outline-offset: 3px;
}
.auth-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: min(100%, 1140px);
    min-height: 78px;
    margin: 0 auto;
}
.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    font-weight: 750;
    letter-spacing: .05em;
    text-decoration: none;
}
.auth-brand-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 12px 12px 12px 4px;
    background: var(--auth-forest);
}
.auth-brand-mark img { display: block; }
.auth-header nav { display: flex; gap: clamp(12px, 2vw, 26px); }
.auth-header nav a { font-size: 14px; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(400px, 1fr);
    width: min(100%, 1016px);
    min-height: 585px;
    margin: clamp(8px, 3vh, 36px) auto 0;
    overflow: hidden;
    border: 1px solid #e4e3d8;
    border-radius: 24px;
    background: #fffdfa;
    box-shadow: 0 20px 55px #2b403015;
}
.auth-visual {
    display: flex;
    align-items: flex-end;
    min-height: 100%;
    padding: clamp(28px, 4vw, 57px);
    color: #fffdf2;
    background:
        linear-gradient(180deg, transparent 24%, #17342621 52%, #142d22f5 100%),
        linear-gradient(139deg, #234d68, #092238);
}
.auth-visual-copy p {
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 650;
    letter-spacing: .25em;
}
.auth-visual-copy h2 {
    margin: 0;
    font-family: "Songti SC", "SimSun", "Microsoft YaHei", serif;
    font-size: clamp(34px, 4.4vw, 57px);
    line-height: 1.17;
    font-weight: 700;
    letter-spacing: .03em;
}
.auth-panel {
    align-self: center;
    min-width: 0;
    padding: 35px clamp(24px, 4.7vw, 65px) 38px;
}
.auth-intro h1 {
    margin: 0 0 17px;
    font-size: clamp(26px, 3.2vw, 35px);
    line-height: 1.2;
    letter-spacing: .015em;
}
.auth-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    margin: 0 0 23px;
    padding: 4px;
    border: 1px solid #e8ebe2;
    border-radius: 11px;
    background: #f0f3ec;
}
.auth-tabs > * {
    display: grid;
    place-items: center;
    min-height: 36px;
    padding: 4px 2px;
    border-radius: 7px;
    color: var(--auth-muted);
    font-size: 13px;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
}
.auth-tabs a:hover { color: var(--auth-leaf); background: #e4ece0; }
.auth-tabs [aria-current="page"] {
    color: var(--auth-leaf);
    background: #fff;
    box-shadow: 0 1px 4px #25422b20;
    font-weight: 750;
}
.auth-fields { display: grid; gap: 12px; margin: 0; }
.auth-field { display: grid; gap: 5px; min-width: 0; }
.auth-field label { font-size: 14px; font-weight: 700; }
.auth-field input {
    width: 100%;
    min-width: 0;
    height: 45px;
    padding: 0 13px;
    border: 1px solid var(--auth-border);
    border-radius: 9px;
    background: #fff;
    color: var(--auth-ink);
    font: inherit;
}
.auth-field input::placeholder { color: #68776b; }
.auth-field > input:focus, .auth-input-group:focus-within {
    border-color: var(--auth-forest);
    outline: 2px solid #9ec3a7;
    outline-offset: 1px;
}
.auth-input-group {
    display: flex;
    align-items: center;
    min-width: 0;
    border: 1px solid var(--auth-border);
    border-radius: 9px;
    background: #fff;
}
.auth-input-group input { border: 0; outline: none; background: transparent; }
.auth-phone-prefix { padding: 0 0 0 13px; color: #354b3d; font-size: 14px; white-space: nowrap; }
.auth-send, .auth-resend {
    flex-shrink: 0;
    max-width: 48%;
    padding: 0 12px;
    color: var(--auth-leaf);
    line-height: 1.25;
    font-family: inherit;
    font-size: 13px;
    font-weight: 650;
    white-space: nowrap;
}
.auth-send {
    min-height: 38px;
    border: 0;
    border-radius: 5px;
    margin-right: 3px;
    background: #eef4ea;
    cursor: pointer;
}
.auth-send:hover { background: #dceadc; }
.auth-resend { color: var(--auth-muted); }
.auth-resend i { font-style: normal; }
.auth-submit {
    min-height: 47px;
    margin-top: 4px;
    padding: 9px 15px;
    border: 0;
    border-radius: 9px;
    color: #fff;
    background: var(--auth-forest);
    box-shadow: 0 5px 10px #1e563826;
    font: inherit;
    font-weight: 750;
    cursor: pointer;
}
.auth-submit:hover { background: var(--auth-leaf); }
.auth-notice, .auth-error, .login-status:not(:empty) {
    margin: 0 0 9px;
    padding: 8px 11px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: #eef4ea;
    color: var(--auth-forest);
    font-size: 14px;
}
.auth-error, .login-status.is-error:not(:empty) {
    border-color: #f0d3ca;
    background: #fcf0ea;
    color: #852e24;
}
.login-status:empty { display: none; }
.login-status:not(:empty) { margin: 0; }
.auth-agreements {
    margin-top: 19px;
    padding-top: 13px;
    border-top: 1px solid #e9ece4;
}
.auth-agreements ul {
    display: flex;
    flex-wrap: wrap;
    column-gap: 10px;
    row-gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.auth-agreements a {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    color: var(--auth-muted);
    font-size: 12px;
    line-height: 1.35;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}
.auth-agreements a:hover { color: var(--auth-leaf); }
@media (max-width: 760px) {
    body.hzh-auth { padding: 0 16px 26px; }
    .auth-header { min-height: 65px; gap: 10px; }
    .auth-brand { gap: 7px; font-size: 14px; letter-spacing: 0; }
    .auth-brand-mark { width: 33px; height: 33px; }
    .auth-brand-mark img { width: 22px; height: 22px; }
    .auth-header nav { gap: 11px; }
    .auth-header nav a { font-size: 12px; }
    .auth-shell { display: block; width: min(100%, 455px); min-height: 0; margin-top: 9px; border-radius: 17px; }
    .auth-visual { display: none; }
    .auth-panel { padding: 27px clamp(15px, 5vw, 28px) 29px; }
}

