@font-face {
    font-family: "Huaran Lato";
    src: url("../fonts/lato/lato-regular.woff") format("woff");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

.hr-auth {
    --hr-page: #f0f0ed;
    --hr-paper: #fdfdfb;
    --hr-text: #292c29;
    --hr-secondary: #666b65;
    --hr-faint: #6d7168;
    --hr-border: #d8dbd4;
    --hr-input: #f6f7f3;
    --hr-accent: #897047;
    --hr-light: #f7f6ef;
    --hr-focus: #75603e;
    --hr-danger: #9f3434;
    --hr-font: "Huaran Lato", "PingFang SC", "Microsoft YaHei", sans-serif;
    --hr-viewport: 100vh;
    --hr-frame: 24px;
    --hr-control-height: 54px;
    margin: 0;
    padding: var(--hr-frame);
    min-height: var(--hr-viewport);
    min-width: 320px;
    background: var(--hr-page);
    color: var(--hr-text);
    font-family: var(--hr-font);
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    color-scheme: light;
}

@supports (height: 100dvh) {
    .hr-auth { --hr-viewport: 100dvh; }
}

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

.hr-auth ::selection {
    color: var(--hr-light);
    background: var(--hr-accent);
}

.hr-auth [hidden] {
    display: none !important;
}

.hr-auth button,
.hr-auth input {
    font: inherit;
}

.hr-auth h1,
.hr-auth h2 {
    font-family: var(--hr-font);
}

.hr-auth button:focus-visible,
.hr-auth a:focus-visible,
.hr-auth input[type="checkbox"]:focus-visible,
.hr-auth [role="button"]:focus-visible {
    outline: 2px solid var(--hr-focus);
    outline-offset: 4px;
}

.hr-auth .hr-skip {
    position: fixed;
    left: 32px;
    top: -80px;
    z-index: 20;
    padding: 10px 18px;
    border-radius: 4px;
    color: var(--hr-light);
    background: var(--hr-text);
}

.hr-auth .hr-skip:focus {
    top: 32px;
}

.hr-auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(440px, 1fr);
    grid-template-rows: minmax(0, 1fr);
    width: 100%;
    max-width: 1840px;
    min-height: 0;
    height: calc(var(--hr-viewport) - var(--hr-frame) * 2);
    margin: 0 auto;
    border-radius: 14px;
    background: var(--hr-paper);
    overflow: hidden;
}

.hr-story {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 44px 48px 36px;
    isolation: isolate;
    color: var(--hr-light);
    background: #343a35;
    overflow: hidden;
}

.hr-story-image,
.hr-story-shade {
    position: absolute;
    inset: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
}

.hr-story-image {
    display: block;
    object-fit: cover;
    object-position: 53% center;
}

/* Neutral scrims keep the photographic welcome readable at every crop. */
.hr-story-shade {
    background: linear-gradient(180deg, rgba(18, 24, 20, 0.6) 0%, rgba(18, 24, 20, 0.06) 34%, rgba(18, 24, 20, 0.42) 60%, rgba(18, 24, 20, 0.9) 100%),
        linear-gradient(90deg, rgba(18, 24, 20, 0.24), rgba(18, 24, 20, 0.04));
}

.hr-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.hr-brand-mark {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    color: #e7d5b4;
}

.hr-brand h1 {
    margin: 0;
    color: inherit;
    font-size: 22px;
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: 0.12em;
}

.hr-brand-en {
    margin: 5px 0 0;
    color: #e8e8e0;
    font-size: 11px;
    line-height: 1.5;
    letter-spacing: 0.08em;
}

.hr-story-copy {
    margin-top: auto;
    padding: clamp(24px, 8vh, 100px) 0 clamp(24px, 6vh, 72px);
}

.hr-story-title {
    margin: 0;
    font-family: "SimSun", "Songti SC", "STSong", serif;
    font-size: clamp(52px, 4.6vw, 76px);
    font-weight: 400;
    line-height: 1.45;
    letter-spacing: 0.08em;
    text-wrap: balance;
}

.hr-story-description {
    margin: 24px 0 0;
    color: #f0f0e8;
    font-size: 14px;
    letter-spacing: 0.08em;
    line-height: 1.8;
}

.hr-story-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: #e1e3da;
    font-size: 12px;
    line-height: 1.8;
    letter-spacing: 0.08em;
}

.hr-story-signature {
    font-size: 13px;
    letter-spacing: 0.01em;
}

.hr-access {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    padding: 38px clamp(32px, 3.6vw, 64px) 28px;
}

.hr-access-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--hr-secondary);
    font-size: 12px;
}

.hr-access-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.hr-access-label svg {
    width: 15px;
    height: 15px;
    stroke: currentColor;
    stroke-width: 1.5;
}

.hr-form-wrap {
    width: 100%;
    max-width: 376px;
    margin: auto;
    flex: 0 0 auto;
    padding: 12px 0;
}

.hr-form-heading {
    margin-bottom: 36px;
}

.hr-welcome {
    margin: 0 0 14px;
    color: var(--hr-accent);
    font-size: 15px;
    line-height: 1.5;
}

.hr-form-heading h2 {
    margin: 0;
    color: var(--hr-text);
    font-size: 32px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: -0.02em;
}

.hr-form-description {
    margin: 14px 0 0;
    color: var(--hr-secondary);
    font-size: 14px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.hr-auth .hr-form-group {
    margin: 0 0 22px;
}

.hr-auth .hr-form-group .hr-label {
    display: block;
    margin: 0 0 9px;
    padding: 0;
    color: var(--hr-text);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    text-align: left;
}

.hr-input-wrap {
    position: relative;
}

.hr-auth .hr-input {
    display: block;
    float: none;
    width: 100%;
    height: var(--hr-control-height);
    padding: 0 16px 0 46px;
    border: 1px solid var(--hr-border);
    border-radius: 6px;
    outline: 0;
    color: var(--hr-text);
    background: var(--hr-input);
    box-shadow: none;
    font-size: 14px;
    line-height: normal;
    transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.hr-auth .hr-input::placeholder {
    color: var(--hr-faint);
    opacity: 1;
}

.hr-auth .hr-input:focus {
    border-color: var(--hr-focus);
    background: var(--hr-paper);
    box-shadow: 0 0 0 3px rgba(117, 96, 62, 0.12);
}

.hr-auth .hr-input:-webkit-autofill {
    -webkit-text-fill-color: var(--hr-text);
    -webkit-box-shadow: 0 0 0 1000px var(--hr-input) inset;
    caret-color: var(--hr-text);
}

.hr-input-icon {
    position: absolute;
    top: 50%;
    left: 16px;
    z-index: 1;
    width: 18px;
    height: 18px;
    color: var(--hr-faint);
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
    transform: translateY(-50%);
}

.hr-auth .hr-input-password {
    padding-right: 52px;
}

.hr-password-toggle {
    position: absolute;
    top: 50%;
    right: 5px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    color: var(--hr-secondary);
    background: transparent;
    cursor: pointer;
    transform: translateY(-50%);
}

.hr-password-toggle svg {
    width: 19px;
    height: 19px;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hr-eye-slash {
    display: none;
}

.hr-password-toggle[aria-pressed="true"] .hr-eye-slash {
    display: block;
}

.hr-auth .hr-input-captcha {
    padding-right: 126px;
}

.hr-auth .hr-captcha-image {
    position: absolute;
    top: 50%;
    right: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 112px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 3px;
    background: var(--hr-paper);
    transform: translateY(-50%);
}

.hr-captcha-image img {
    display: block;
    width: 100px;
    height: 38px;
    object-fit: contain;
    cursor: pointer;
}

.hr-form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: -6px 0 22px;
}

.hr-auth .hr-remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    margin: 0;
    color: var(--hr-secondary);
    font-size: 13px;
    font-weight: 400;
    cursor: pointer;
}

.hr-auth .hr-remember input {
    position: static;
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--hr-focus);
    cursor: pointer;
}

.hr-account-tip {
    color: var(--hr-faint);
    font-size: 12px;
}

.hr-auth .hr-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: 100%;
    height: var(--hr-control-height);
    margin: 0;
    padding: 0 24px;
    border: 1px solid transparent;
    border-radius: 6px;
    color: var(--hr-light);
    background: var(--hr-text);
    box-shadow: none;
    font-size: 15px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: background-color 150ms ease;
}

.hr-submit svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hr-auth .hr-submit:active {
    background: #161a16;
}

.hr-auth .hr-submit:disabled {
    opacity: 0.7;
    cursor: wait;
}

.hr-login-help {
    margin: 22px 0 0;
    color: var(--hr-secondary);
    font-size: 12px;
    line-height: 1.8;
    text-align: center;
}

.hr-platform-scope {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0 24px;
    margin-top: 48px;
    color: var(--hr-faint);
    font-size: 12px;
}

.hr-access-foot {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0 16px;
    color: var(--hr-faint);
    font-size: 11px;
    line-height: 1.9;
    text-align: center;
}

.hr-auth #errtips:not(.hide) {
    margin: 0 0 20px;
    padding: 10px 12px;
    border-radius: 4px;
    color: var(--hr-danger);
    background: #f9eded;
    font-size: 13px;
}

.hr-auth .has-error .hr-input {
    border-color: var(--hr-danger);
}

.hr-auth .has-error .hr-label {
    color: var(--hr-danger);
}

@keyframes hr-enter {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: no-preference) {
    .hr-brand { animation: hr-enter 400ms ease-out both; }
    .hr-story-copy { animation: hr-enter 400ms ease-out 80ms both; }
    .hr-form-wrap { animation: hr-enter 400ms ease-out 140ms both; }
}

@media (hover: hover) and (pointer: fine) {
    .hr-password-toggle:hover {
        color: var(--hr-text);
        background: var(--hr-page);
    }
    .hr-auth .hr-submit:hover {
        color: var(--hr-light);
        background: #40463e;
    }
}

@media (min-width: 1600px) {
    .hr-story { padding: 52px 64px 40px; }
    .hr-story-copy { padding-bottom: 88px; }
}

@media (max-width: 1100px) {
    .hr-auth { --hr-frame: 16px; }
    .hr-auth-shell {
        grid-template-columns: minmax(0, 1fr) minmax(390px, 1fr);
    }
    .hr-story { padding: 32px 28px 28px; }
    .hr-brand { gap: 10px; }
    .hr-brand h1 { font-size: 19px; letter-spacing: 0.08em; }
    .hr-brand-en { font-size: 11px; letter-spacing: 0.01em; }
    .hr-story-title { font-size: 52px; }
    .hr-story-description { max-width: 250px; font-size: 13px; }
    .hr-story-signature { display: none; }
    .hr-access { padding: 32px 30px 24px; }
    .hr-form-wrap { padding: 20px 0; }
}

@media (max-width: 800px) {
    .hr-auth { --hr-frame: 0px; }
    .hr-auth-shell {
        display: flex;
        flex-direction: column;
        border-radius: 0;
    }
    .hr-story {
        min-height: 0;
        flex: 0 0 auto;
        padding: 26px 32px 30px;
    }
    .hr-story-image { object-position: center 53%; }
    .hr-story-shade { background: rgba(18, 24, 20, 0.64); }
    .hr-brand-mark { flex-basis: 36px; width: 36px; height: 36px; }
    .hr-brand h1 { font-size: 20px; }
    .hr-brand-en { font-size: 11px; }
    .hr-story-copy { padding: 24px 0 0; }
    .hr-story-title { font-size: 28px; line-height: 1.5; letter-spacing: 0.06em; }
    .hr-story-title br { display: none; }
    .hr-story-description,
    .hr-story-foot { display: none; }
    .hr-access { flex: 1 0 auto; padding: 24px 32px 22px; }
    .hr-access-top { width: 100%; max-width: 460px; margin: 0 auto; }
    .hr-form-wrap { padding: 20px 0; }
    .hr-form-heading { margin-bottom: 28px; }
    .hr-welcome { margin-bottom: 10px; font-size: 14px; }
    .hr-form-heading h2 { font-size: 28px; }
    .hr-platform-scope { margin-top: 32px; }
    .hr-access-foot { margin-top: auto; }
}

@media (max-width: 480px) {
    .hr-story { padding: 22px 24px 24px; }
    .hr-story-copy { padding-top: 20px; }
    .hr-story-title { font-size: 25px; }
    .hr-access { padding: 22px 24px 20px; }
    .hr-access-top { font-size: 11px; }
    .hr-form-wrap { padding: 16px 0; }
    .hr-form-description { font-size: 13px; }
    .hr-form-heading { margin-bottom: 28px; }
    .hr-form-heading h2 { font-size: 27px; }
    .hr-auth .hr-form-group { margin-bottom: 20px; }
    .hr-platform-scope { margin-top: 28px; }
    .hr-access-foot { font-size: 11px; gap: 0 10px; }
}

/* Reduce decoration and spacing before the viewport can clip a login control. */
@media (max-height: 820px) {
    .hr-auth { --hr-control-height: 48px; }
    .hr-access { padding-top: 22px; padding-bottom: 20px; }
    .hr-form-wrap { padding: 14px 0; }
    .hr-form-heading { margin-bottom: 22px; }
    .hr-welcome { margin-bottom: 8px; }
    .hr-form-description { margin-top: 10px; }
    .hr-auth .hr-form-group { margin-bottom: 16px; }
    .hr-auth .hr-form-group .hr-label { margin-bottom: 6px; }
    .hr-form-options { margin-bottom: 14px; }
    .hr-login-help { margin-top: 14px; }
    .hr-platform-scope { margin-top: 22px; }
}

@media (max-height: 700px) {
    .hr-auth { --hr-control-height: 44px; }
    .hr-access { padding-top: 16px; padding-bottom: 16px; }
    .hr-form-wrap { padding: 10px 0; }
    .hr-form-heading { margin-bottom: 16px; }
    .hr-form-heading h2 { font-size: 27px; }
    .hr-auth .hr-form-group { margin-bottom: 12px; }
    .hr-form-options { margin-top: -4px; margin-bottom: 10px; }
    .hr-login-help { margin-top: 10px; }
    .hr-platform-scope { display: none; }
    .hr-story-copy { padding: 24px 0; }
    .hr-story-title { font-size: 48px; }
}

@media (max-width: 800px) and (max-height: 960px) {
    .hr-story { padding: 18px 24px; }
    .hr-story-copy { padding: 12px 0 0; }
    .hr-story-title { font-size: 23px; }
    .hr-form-wrap { padding: 2px 0; }
    .hr-form-heading { margin-bottom: 20px; }
    .hr-auth .hr-form-group { margin-bottom: 14px; }
    .hr-platform-scope { margin-top: 20px; }
}

@media (max-width: 800px) and (max-height: 760px) {
    .hr-story-copy,
    .hr-welcome,
    .hr-access-top { display: none; }
    .hr-story { padding-top: 16px; padding-bottom: 16px; }
    .hr-access { padding-top: 12px; padding-bottom: 12px; }
    .hr-form-heading { margin-bottom: 16px; }
    .hr-platform-scope { display: none; }
}

@media (min-width: 801px) and (max-height: 620px) {
    .hr-auth { --hr-frame: 12px; }
    .hr-access-top,
    .hr-welcome,
    .hr-platform-scope { display: none; }
    .hr-access { padding-top: 16px; padding-bottom: 12px; }
    .hr-form-wrap { padding: 8px 0; }
    .hr-story-description { margin-top: 12px; }
}

@media (max-width: 800px) and (max-height: 620px) {
    .hr-story { padding-top: 12px; padding-bottom: 12px; }
    .hr-brand-en,
    .hr-form-description { display: none; }
    .hr-access { padding-top: 8px; padding-bottom: 8px; }
    .hr-form-wrap { padding: 8px 0; }
    .hr-form-heading { margin-bottom: 12px; }
    .hr-form-heading h2 { font-size: 24px; }
    .hr-auth .hr-form-group { margin-bottom: 10px; }
    .hr-auth .hr-form-group .hr-label { margin-bottom: 4px; }
    .hr-form-options { margin-bottom: 8px; }
}

@media (max-width: 599px) and (max-height: 540px) {
    .hr-story { padding-top: 10px; padding-bottom: 10px; }
    .hr-form-wrap { padding: 4px 0; }
    .hr-auth .hr-form-group { margin-bottom: 8px; }
    .hr-login-help { display: none; }
}

@media (min-width: 600px) and (max-height: 540px) {
    .hr-auth { --hr-frame: 12px; --hr-control-height: 44px; }
    .hr-auth-shell {
        display: grid;
        grid-template-columns: minmax(180px, 0.75fr) minmax(0, 1.25fr);
        border-radius: 10px;
    }
    .hr-story { padding: 24px 20px; }
    .hr-brand { gap: 8px; }
    .hr-brand-mark { flex-basis: 28px; width: 28px; height: 28px; }
    .hr-brand h1 { font-size: 16px; letter-spacing: 0; }
    .hr-brand-en { font-size: 10px; letter-spacing: 0; }
    .hr-story-copy,
    .hr-story-foot,
    .hr-access-top,
    .hr-welcome,
    .hr-form-description,
    .hr-login-help,
    .hr-platform-scope { display: none; }
    .hr-access { padding: 16px 20px 12px; }
    .hr-form-wrap { padding: 0; }
    .hr-form-heading { margin-bottom: 16px; }
    .hr-form-heading h2 { font-size: 24px; }
    .hr-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; }
    .hr-form > #errtips,
    .hr-captcha-group { grid-column: 1 / -1; }
    .hr-form-options { margin: 0; }
    .hr-account-tip { display: none; }
    .hr-auth .hr-submit { gap: 8px; padding: 0 10px; font-size: 14px; letter-spacing: 0; }
    .hr-access-foot { margin-top: 12px; font-size: 10px; }
}

/* Extremely short windows and an open keyboard must not make fields unreachable. */
@media (max-height: 359px), (max-width: 599px) and (max-height: 479px) {
    .hr-auth-shell { height: auto; min-height: calc(var(--hr-viewport) - var(--hr-frame) * 2); overflow: visible; }
}

@media (prefers-reduced-motion: reduce) {
    .hr-auth *,
    .hr-auth *::before,
    .hr-auth *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
