.hn-admin-login {
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    place-items: center;
    padding: clamp(18px, 5vw, 72px);
    background: radial-gradient(ellipse at 82% 15%, #dfeeff 0, transparent 35%), #f1f3f6;
    color: #172d46;
    font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.hn-login-frame {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    width: min(100%, 1160px);
    min-height: 650px;
    overflow: hidden;
    border: 1px solid #e4e4e7;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 28px 84px #162d461c, 0 4px 12px #162d4609;
}

.hn-login-hero {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 0;
    padding: clamp(26px, 4vw, 53px);
    background: #162b45;
    color: #fffefa;
}

.hn-login-landscape,
.hn-login-hero::before {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hn-login-landscape {
    z-index: -2;
    object-fit: cover;
    object-position: center 64%;
}

.hn-login-hero::before {
    z-index: -1;
    content: "";
    background: linear-gradient(180deg, #0f2239a0, transparent 43%, transparent 72%, #101d32ac);
}

.hn-login-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: "Songti SC", "STZhongsong", SimSun, serif;
    font-size: clamp(26px, 2.5vw, 38px);
    font-weight: 700;
    letter-spacing: .09em;
}

.hn-login-mark {
    display: grid;
    place-items: center;
    flex: none;
    width: 46px;
    height: 46px;
    border: 1px solid #e6c897aa;
    border-radius: 11px;
    color: #f2d2a1;
    font: 19px/1 "Segoe UI", sans-serif;
    letter-spacing: 0;
}

.hn-login-hero figcaption {
    width: max-content;
    max-width: 100%;
    padding-top: 11px;
    border-top: 1px solid #d8bb8d;
    color: #fff5e3;
    font-size: 13px;
    letter-spacing: .15em;
}

.hn-login-card {
    align-self: center;
    width: min(100%, 454px);
    margin-inline: auto;
    padding: 48px 42px 52px;
}

.hn-login-card h1 {
    margin: 0 0 34px;
    color: #182f49;
    font-size: clamp(26px, 2.7vw, 36px);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: .025em;
}

.hn-login-card .form-group { margin-bottom: 21px; }
.hn-login-card label { margin-bottom: 8px; color: #263e55; font-weight: 600; }
.hn-login-field { position: relative; }
.hn-login-field > .fa {
    position: absolute;
    top: 26px;
    left: 15px;
    transform: translateY(-50%);
    color: #61738a;
    pointer-events: none;
}

.hn-login-card .form-control {
    width: 100%;
    height: 52px;
    border: 1px solid #d2d9e1;
    border-radius: 9px;
    background: #fff;
    color: #172d46;
    font-size: 14px;
}
.hn-login-field .form-control { padding-inline: 42px 14px; }
.hn-login-card .form-control::placeholder { color: #65748a; opacity: 1; }
.hn-login-card .form-control:focus { border-color: #0068e5; box-shadow: 0 0 0 3px #0068e51a; }
.hn-login-card .n-valid .form-control:not(:focus) { border-color: #d2d9e1; }
.hn-login-card .n-invalid .form-control { border-color: #b74548; }

.hn-login-card .hn-login-session { margin: 2px 0 25px; }
.hn-login-session label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 24px;
    margin: 0;
    padding: 0;
    font-weight: 500;
}
.hn-login-session input[type="checkbox"] {
    position: static;
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #182f49;
}

.hn-login-card .hn-login-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    border: 1px solid #182f49;
    border-radius: 9px;
    background: #182f49;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .16em;
}
.hn-login-card .hn-login-submit:hover,
.hn-login-card .hn-login-submit:focus { background: #24486c; border-color: #24486c; }
.hn-login-card .hn-login-submit:focus-visible { outline: 2px solid #24486c; outline-offset: 3px; }

.hn-captcha { display: flex; align-items: center; gap: 9px; }
.hn-captcha .form-control { min-width: 0; }
.hn-captcha button { flex: none; border: 1px solid #d2d9e1; padding: 7px 5px; border-radius: 8px; background: #fff; }
.hn-captcha img { display: block; width: 100px; height: 30px; }

@media (max-width: 940px) {
    .hn-admin-login { padding: clamp(16px, 3vw, 32px); }
    .hn-login-frame { min-height: 570px; }
    .hn-login-card { padding-inline: 30px; }
}

@media (max-width: 700px) {
    .hn-admin-login { align-items: start; padding-block: clamp(18px, 7vh, 54px); }
    .hn-login-frame { grid-template-columns: 1fr; max-width: 480px; min-height: 0; border-radius: 19px; }
    .hn-login-hero { min-height: 154px; padding: 19px 22px; }
    .hn-login-brand { font-size: 27px; }
    .hn-login-mark { width: 36px; height: 36px; font-size: 15px; }
    .hn-login-hero figcaption { padding-top: 5px; font-size: 12px; }
    .hn-login-card { width: 100%; padding: 28px 22px 32px; }
    .hn-login-card h1 { margin-bottom: 23px; }
    .hn-login-card .form-group { margin-bottom: 16px; }
    .hn-login-field .form-control { font-size: 16px; }
}
