/* HANBIT access pages. Local assets, readable forms and the official wordmark. */
:root {
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #18334b;
    background: #f1f6f8;
    font-synthesis: none;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    color-scheme: light;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: #146b72; text-underline-offset: 4px; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }

.auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    min-height: 100vh;
    min-height: 100svh;
}

.brand-side {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 48px;
    overflow: hidden;
    padding: clamp(32px, 5.2vw, 80px);
    color: #fff;
    background: radial-gradient(ellipse at 95% 90%, #1c666c 0, transparent 53%), linear-gradient(145deg, #101e37, #173c51);
}

.brand-side::before, .brand-side::after {
    position: absolute;
    content: "";
    pointer-events: none;
    border: 1px solid rgba(182, 230, 225, .13);
    border-radius: 50%;
}
.brand-side::before {
    right: -270px;
    bottom: -210px;
    width: 720px;
    height: 720px;
    box-shadow: 0 0 0 68px rgba(182, 230, 225, .035), 0 0 0 140px rgba(182, 230, 225, .025);
}
.brand-side::after { right: -150px; bottom: -90px; width: 480px; height: 480px; }
.brand-lockup, .brand-main, .brand-footer { position: relative; z-index: 1; }
.brand-lockup { display: flex; align-items: center; }
.brand-lockup-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(288px, 100%);
    padding: 12px 17px;
    border: 1px solid rgba(255, 255, 255, .6);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(3, 17, 32, .16);
}
.brand-lockup-logo img { display: block; width: 100%; height: auto; }
.brand-main { margin: auto 0; max-width: 590px; }
.eyebrow {
    margin: 0;
    color: #a4e2d9;
    font-size: 11px;
    line-height: 1.6;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: .16em;
}
.brand-title {
    margin: 20px 0 25px;
    font-size: clamp(44px, 5.2vw, 76px);
    line-height: 1.08;
    letter-spacing: -.055em;
    font-weight: 750;
}
.brand-title em { font-style: normal; color: #a4e2d9; }
.brand-copy { margin: 0; max-width: 435px; font-size: 16px; color: #d0e1e8; line-height: 1.85; }
.brand-footer { font-size: 12px; line-height: 1.7; color: #bdcfd9; }

.form-side {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 56px clamp(28px, 5.2vw, 88px);
    background: radial-gradient(ellipse at 100% 0, #e9f4f3, transparent 48%), #f8fafc;
}
.form-wrap { width: 100%; max-width: 430px; }
.access-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    padding: 8px 12px;
    border: 1px solid #cce3dd;
    border-radius: 999px;
    background: #eaf5f1;
    color: #286857;
    font-size: 11px;
    line-height: 1.4;
    font-weight: 750;
    letter-spacing: .055em;
}
h1 { margin: 24px 0 12px; color: #163047; font-size: clamp(32px, 3.4vw, 43px); font-weight: 750; line-height: 1.18; letter-spacing: -.045em; }
.subheading { margin: 0 0 30px; color: #5c7083; font-size: 14px; line-height: 1.8; }
.form-label { display: block; margin: 22px 0 9px; color: #294259; font-size: 13px; line-height: 1.5; font-weight: 700; }
.field {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 52px;
    padding: 13px 16px;
    border: 1px solid #cbd8e1;
    border-radius: 12px;
    background: #fff;
    color: #18334b;
    font-size: 16px;
    line-height: 1.5;
    box-shadow: 0 2px 3px rgba(25, 51, 71, .02);
    transition: border-color .16s ease, box-shadow .16s ease;
}
.field:hover { border-color: #90aab8; }
.field:focus { outline: 0; border-color: #287e85; box-shadow: 0 0 0 4px rgba(26, 127, 132, .12); }
.field::placeholder { color: #708294; opacity: 1; }
.field[aria-invalid="true"] { border-color: #c35c64; background: #fffafa; }
.field[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(176, 52, 66, .1); }
.submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 52px;
    margin: 28px 0 14px;
    padding: 14px 18px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: #176e75;
    color: #fff;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 750;
    cursor: pointer;
    box-shadow: 0 7px 16px rgba(17, 96, 103, .14);
    transition: background-color .16s ease, box-shadow .16s ease;
}
.submit:hover { background: #125a62; box-shadow: 0 9px 20px rgba(17, 96, 103, .2); }
.submit:active { background: #124952; box-shadow: none; }
.submit:focus-visible, a:focus-visible { outline: 3px solid #438bba; outline-offset: 4px; }
.help-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; }
.help-row a, .back-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; font-weight: 700; }
.helper { color: #65788a; font-size: 12px; line-height: 1.7; }
.error { margin: 8px 0 0; color: #a52d3b; font-size: 13px; line-height: 1.65; overflow-wrap: anywhere; }
.error-summary { margin: 20px 0; padding: 12px 16px; border: 1px solid #f0cdd2; border-radius: 12px; background: #fff4f5; }
.error-summary .error:first-child { margin-top: 0; }
.notice { padding: 14px 16px; border-radius: 12px; background: #edf8f2; border: 1px solid #c8e5d6; color: #276344; font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.private { margin: 26px 0 0; padding-top: 20px; border-top: 1px solid #dfe7ed; color: #64788a; font-size: 12px; line-height: 1.8; }
.skip-link { position: absolute; top: -100px; left: 16px; z-index: 30; padding: 12px 16px; border-radius: 8px; background: #fff; }
.skip-link:focus { top: 12px; }

.recovery-page { min-height: 100vh; min-height: 100svh; background: radial-gradient(ellipse at 10% 0, #dfefed, transparent 50%), #f1f6f8; }
.recovery-shell { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100vh; min-height: 100svh; gap: 26px; padding: 48px 24px; }
.recovery-brand { width: min(250px, 75%); }
.recovery-brand img { display: block; width: 100%; height: auto; }
.recovery-card { width: 100%; max-width: 480px; padding: 36px; border: 1px solid #dde7eb; border-radius: 22px; background: #fff; box-shadow: 0 16px 60px rgba(25, 57, 75, .07); }
.recovery-card h1 { font-size: 32px; }
.recovery-card .subheading { margin-bottom: 24px; }
.recovery-card .back-link { gap: 8px; }
.recovery-footer { margin: 0; color: #64788a; font-size: 12px; text-align: center; line-height: 1.7; }

@media (max-width: 1050px) {
    .brand-side { padding: 36px; }
    .brand-title { font-size: 52px; }
    .form-side { padding: 48px 32px; }
}

@media(max-width:740px) {
    .auth-shell { display: block; }
    .brand-side { min-height: 0; padding: 25px 24px 28px; gap: 24px; }
    .brand-lockup-logo { width: 216px; padding: 8px 12px; border-radius: 12px; }
    .brand-main { margin: 0; }
    .eyebrow { font-size: 10px; letter-spacing: .12em; }
    .brand-title { max-width: 520px; margin: 9px 0 0; font-size: 32px; line-height: 1.2; letter-spacing: -.04em; }
    .brand-title br { display: none; }
    .brand-copy, .brand-footer { display: none; }
    .form-side { padding: 32px 24px 44px; }
    .form-wrap { max-width: 470px; }
    h1 { margin-top: 18px; font-size: 32px; }
    .subheading { margin-bottom: 24px; }
    .recovery-shell { padding: 32px 20px; gap: 24px; }
    .recovery-card { padding: 28px 24px; border-radius: 18px; }
}

@media (max-width: 380px) {
    .brand-side { padding: 22px 20px 24px; gap: 20px; }
    .brand-title { font-size: 28px; }
    .form-side { padding: 28px 20px 36px; }
    .recovery-shell { padding: 24px 16px; }
    .recovery-card { padding: 24px 20px; }
    .recovery-card h1 { font-size: 29px; }
}

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