.hn-login {
    --login-ink: #243d32;
    --login-muted: #768078;
    --login-green: #315d46;
    box-sizing: border-box;
    min-height: 100vh;
    margin: 0;
    background: #f8faf5;
    color: var(--login-ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
}
.hn-login *, .hn-login *::before, .hn-login *::after { box-sizing: inherit; }
.login-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 34px 64px;
}
.login-brand { display: flex; align-items: center; gap: 14px; }
.brand-mark {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--login-green);
    color: #f2f5e9;
}
.brand-mark svg { width: 33px; height: 33px; }
.brand-name { font-size: 19px; font-weight: 650; letter-spacing: .02em; }
.header-caption { color: var(--login-muted); font-size: 13px; letter-spacing: .1em; white-space: nowrap; }
.login-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
    align-items: center;
    gap: clamp(48px, 7vw, 100px);
    max-width: 1280px;
    min-height: calc(100vh - 110px - var(--huanong-notice-height, 0px));
    margin: 0 auto;
    padding: 40px 64px 80px;
}
.login-story { align-self: center; padding: 0 0 0 6px; }
.story-eyebrow { display: flex; align-items: center; gap: 9px; color: #66775d; font-size: 12px; letter-spacing: .12em; }
.story-eyebrow > span { width: 6px; height: 6px; border-radius: 50%; background: #8aa071; }
.login-story h1 {
    margin: 24px 0 22px;
    font-size: clamp(44px, 4.6vw, 62px);
    font-weight: 650;
    letter-spacing: -.025em;
    line-height: 1.4;
}
.story-period { color: #90a673; }
.story-description { margin: 0; color: #7a8274; font-size: 14px; line-height: 1.9; letter-spacing: .02em; }
.supply-illustration { max-width: 530px; margin: 25px -10px 0 -24px; }
.supply-art { display: block; width: 100%; height: auto; }
.supply-caption { display: flex; align-items: center; justify-content: center; gap: 15px; padding: 4px 0 0; color: #718369; font-size: 12px; letter-spacing: .14em; }
.supply-caption i { width: 25px; height: 1px; background: #cbd5c2; }
.login-panel {
    width: 100%;
    max-width: 430px;
    justify-self: end;
    padding: 44px 40px 30px;
    border: 1px solid #e4e9df;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 16px 64px -24px rgba(44, 67, 43, .13);
}
.panel-eyebrow { color: #6f8562; font-size: 11px; font-weight: 600; letter-spacing: .15em; }
.login-panel h2 { margin: 12px 0 10px; font-size: 30px; line-height: 1.35; font-weight: 650; letter-spacing: -.02em; }
.login-panel-heading > p { margin: 0 0 34px; color: var(--login-muted); font-size: 13px; line-height: 1.7; }
.login-field { margin-bottom: 21px; }
.login-field label { display: block; margin-bottom: 9px; color: #3b4b40; font-size: 13px; font-weight: 500; }
.login-field input {
    display: block;
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid #dce3d8;
    border-radius: 9px;
    outline: none;
    background: #fcfdfb;
    color: var(--login-ink);
    font: inherit;
    font-size: 14px;
    transition: border-color .15s, box-shadow .15s;
}
.login-field input::placeholder { color: #a0a69c; }
.login-field input:focus { border-color: #6d8b62; box-shadow: 0 0 0 3px rgba(109, 139, 98, .12); background: #fff; }
.login-field input:-webkit-autofill { -webkit-box-shadow: 0 0 0 50px #fcfdfb inset; -webkit-text-fill-color: var(--login-ink); }
.password-field { position: relative; }
.password-field input { padding-right: 60px; }
.password-toggle {
    position: absolute;
    top: 1px;
    right: 4px;
    height: 46px;
    padding: 0 10px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #6c7d64;
    font: inherit;
    font-size: 12px;
    cursor: pointer;
}
.password-toggle:hover { color: #315d46; }
.password-toggle:focus-visible, .captcha-refresh:focus-visible, .login-submit:focus-visible { outline: 3px solid #8ca87f; outline-offset: 3px; }
.captcha-row { display: flex; align-items: center; gap: 9px; }
.captcha-row input { flex: 1; min-width: 0; padding: 0 10px; }
.captcha-image { flex: 0 0 100px; width: 100px; height: 40px; border-radius: 5px; }
.captcha-refresh { padding: 8px 0; border: 0; background: transparent; color: #607856; font: inherit; font-size: 12px; white-space: nowrap; cursor: pointer; }
.login-message { margin: -2px 0 18px; padding: 10px 12px; border: 1px solid #f0dad3; border-radius: 8px; background: #fff6f2; color: #a24731; font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.login-message.is-empty { display: none; }
.login-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    height: 49px;
    margin-top: 28px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 9px;
    background: var(--login-green);
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background .15s, transform .15s;
}
.login-submit svg { width: 18px; height: 18px; }
.login-submit:hover { background: #244c37; }
.login-submit:active { transform: translateY(1px); }
.login-help { margin: 23px 0 0; text-align: center; color: #92998d; font-size: 11px; line-height: 1.7; }
.login-panel [hidden] { display: none !important; }
.login-code-row { display: flex; align-items: center; gap: 8px; }
.login-code-row input { min-width: 0; }
.login-text-button {
    min-height: 44px;
    padding: 4px 8px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--login-green);
    font: inherit;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    cursor: pointer;
}
.login-text-button:hover { background: #eef4e8; }
.login-text-button:disabled { color: var(--login-muted); cursor: default; }
.login-text-button:focus-visible { outline: 2px solid #52744a; outline-offset: 2px; box-shadow: 0 0 0 2px #fff; }
#login-method-toggle { display: block; margin: 12px auto 0; }
#login-sms-accounts { min-width: 0; margin: 0 0 16px; padding: 0; border: 0; }
#login-sms-accounts legend { margin-bottom: 8px; font-size: 14px; }
#login-sms-account-list label {
    display: flex;
    align-items: center;
    min-height: 44px;
    gap: 8px;
    padding: 4px 8px;
    border-radius: 8px;
    background: #f8faf5;
    font-size: 14px;
    overflow-wrap: anywhere;
}
#login-sms-account-list label + label { margin-top: 4px; }
.login-message.is-notice { border-color: transparent; background: #eef4e8; color: var(--login-green); }
@media (min-width: 1600px) { .login-layout { gap: 140px; } }
@media (min-width: 761px) and (max-height: 800px) {
    .login-header { padding-top: 24px; padding-bottom: 24px; }
    .login-layout { min-height: calc(100vh - 90px - var(--huanong-notice-height, 0px)); padding-top: 12px; padding-bottom: 28px; }
    .login-story h1 { margin: 18px 0 16px; font-size: 52px; line-height: 1.3; }
    .supply-illustration { max-width: 430px; margin-top: 14px; }
}
@media (max-width: 1020px) {
    .login-header { padding: 28px 36px; }
    .login-layout { grid-template-columns: minmax(0, 1fr) minmax(330px, .9fr); gap: 36px; padding: 30px 36px 60px; }
    .brand-name { font-size: 17px; }
    .header-caption { display: none; }
    .login-story h1 { font-size: 44px; }
    .login-panel { padding: 36px 28px 28px; }
}
@media (max-width: 760px) {
    .login-header { padding: 25px 24px; }
    .brand-name { font-size: 16px; line-height: 1.6; }
    .brand-mark { width: 38px; height: 38px; border-radius: 11px; }
    .login-layout { display: flex; flex-direction: column; justify-content: center; gap: 0; min-height: calc(100vh - 92px - var(--huanong-notice-height, 0px)); padding: 16px 24px 48px; }
    .login-story { display: none; }
    .login-panel { max-width: 430px; padding: 38px 30px 30px; border-radius: 18px; }
    .login-panel h2 { font-size: 28px; }
}
@media (max-width: 380px) {
    .login-header { padding: 22px 18px; }
    .login-brand { gap: 10px; }
    .brand-name { font-size: 14px; }
    .login-layout { padding: 12px 16px 36px; }
    .login-panel { padding: 30px 22px 26px; }
    .captcha-row { flex-wrap: wrap; }
    .captcha-row input { flex-basis: calc(100% - 112px); }
    .captcha-refresh { margin-left: auto; padding: 0; }
}
@media (prefers-reduced-motion: reduce) { .hn-login * { transition: none !important; } }
