:root {
    color-scheme: light;
    --ink: #203b33;
    --muted: #6c756d;
    --gold: #d1b37a;
    --line: #e3e2d9;
    --paper: #faf9f5;
    font-size: var(--font-size-base);
    line-height: 1.7;
    color: var(--ink);
    background: #102b25;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .7; }
button, a, input { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }
h1, h2, p { margin: 0; }
svg { display: block; }

.login-page {
    min-height: 100svh;
    background:
        radial-gradient(ellipse at 7% 7%, #47604b45, transparent 48%),
        radial-gradient(ellipse at 96% 98%, #a88c4530, transparent 42%),
        linear-gradient(125deg, #102b25, #102b25 45%, #142e27);
}
.skip-link { position: fixed; top: -100px; left: 24px; z-index: 10; padding: 12px 20px; border-radius: 6px; color: var(--ink); background: var(--paper); }
.skip-link:focus { top: 12px; }
.signin-wrap { width: min(100%, 1280px); min-height: 100svh; margin: auto; padding: 0 48px; display: flex; flex-direction: column; }
.signin-header { min-height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.institution { display: flex; align-items: center; gap: 23px; }
.institution-name { border-left: 1px solid #d1b37a40; padding-left: 23px; color: #eeeede; font-size: 14px; font-weight: 500; line-height: 1.9; }
.institution-name small { display: block; font-size: 14px; font-weight: 400; color: #aab8ab; }
.site-return { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; border: 1px solid #d1b37a35; border-radius: 30px; font-size: 14px; color: #d9ddce; transition: border-color .2s ease, background .2s ease; }
.site-return svg { width: 17px; height: 17px; color: var(--gold); transition: transform .2s ease; }
.site-return:hover { border-color: #d1b37a80; background: #ffffff06; }
.site-return:hover svg { transform: translateX(-3px); }

.signin-main { flex: 1; display: flex; align-items: center; padding: 18px 0 24px; }
.signin-card { width: 100%; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #c6b78450; border-radius: 20px; background: var(--paper); box-shadow: 0 32px 90px #03150f4d, 0 4px 14px #03150f26; }
.institution-panel { position: relative; isolation: isolate; min-width: 0; overflow: hidden; border-radius: 19px 0 0 19px; padding: 34px 44px 26px; display: flex; flex-direction: column; color: #f4f0e5; background: radial-gradient(ellipse at 50% 30%, #3f614b55, transparent 63%), linear-gradient(145deg, #23483a, #17392f 70%); }
.institution-panel::before { content: ''; position: absolute; width: 600px; height: 600px; top: -370px; left: -360px; border: 1px solid #d1b37a14; border-radius: 50%; box-shadow: 0 0 0 30px #d1b37a04, 0 0 0 60px #d1b37a03; z-index: -1; pointer-events: none; }
.institution-panel::after { content: ''; position: absolute; inset: 13px; border: 1px solid #d1b37a24; border-radius: 10px 0 0 10px; z-index: -1; pointer-events: none; }
.institution-art { position: relative; flex: 1; min-height: 390px; width: 100%; margin: 12px 0 24px; display: grid; place-items: center; }
.institution-logo { position: relative; width: min(100%, 380px); height: 380px; object-fit: contain; filter: drop-shadow(0 18px 30px #071e2040); }
.institution-art::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse, #ddc28a0c, transparent 64%); }
.art-orbit { position: absolute; width: min(100%, 390px); aspect-ratio: 1; border: 1px solid #d1b37a26; border-radius: 50%; }
.art-orbit-inner { width: min(93%, 366px); border-color: #d1b37a10; }
.art-orbit-outer::before, .art-orbit-outer::after { content: ''; position: absolute; width: 5px; height: 5px; border-radius: 50%; background: #c4ad7c; top: 50%; margin-top: -2px; box-shadow: 0 0 14px #d1b37a55; }
.art-orbit-outer::before { left: -3px; }
.art-orbit-outer::after { right: -3px; }
.panel-colophon { border-top: 1px solid #d1b37a2e; padding-top: 20px; display: flex; justify-content: space-between; align-items: center; gap: 16px; color: #aebfaa; font-size: 14px; }
.colophon-mark { display: grid; place-items: center; width: 38px; height: 38px; flex-shrink: 0; border: 1px solid #d1b37a45; border-radius: 50%; color: #d9c292; font-size: 14px; }

.signin-panel { min-width: 0; padding: 42px clamp(32px, 4.5vw, 64px) 30px; border-radius: 0 19px 19px 0; background: linear-gradient(150deg, #fdfcf8, #f7f6f0); }
.signin-content { width: 100%; max-width: 390px; margin: auto; }
.signin-heading { display: flex; align-items: center; gap: 13px; margin-bottom: 20px; }
.signin-emblem { width: 40px; height: 40px; display: grid; place-items: center; flex-shrink: 0; border: 1px solid #dfd5bd; border-radius: 12px; color: #8c713e; background: linear-gradient(135deg, #fffdf7, #eee7d6); box-shadow: 0 3px 8px #79634108; }
.signin-emblem svg { width: 20px; height: 20px; }
.signin-content h1 { font-size: 34px; font-weight: 500; line-height: 1.5; letter-spacing: -1px; }
.signin-intro { margin: 8px 0 26px; color: var(--muted); font-size: 14px; line-height: 1.9; }
.signin-field { margin-bottom: 19px; }
.signin-field label { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 8px; font-size: 14px; font-weight: 500; }
.input-field { position: relative; }
.field-icon { position: absolute; top: 50%; left: 16px; z-index: 1; width: 18px; height: 18px; transform: translateY(-50%); color: #8a9786; pointer-events: none; transition: color .2s ease; }
.input-field:focus-within .field-icon { color: #8c713e; }
.signin-field input { display: block; width: 100%; min-height: 54px; padding: 13px 15px 13px 46px; border: 1px solid #dcded2; border-radius: 8px; color: var(--ink); background: #fffefa; font-size: 16px; line-height: 1.5; box-shadow: 0 2px 3px #203b3302; transition: background .2s ease, border-color .2s ease, box-shadow .2s ease; }
.signin-field input::placeholder { color: #737c6d; font-size: 14px; opacity: 1; }
.signin-field input:hover { border-color: #aeb7a4; }
.signin-field input:focus { border-color: #a58a51; outline: 2px solid #d1b37a40; outline-offset: 2px; background: #fff; box-shadow: 0 0 0 4px #d1b37a0c; }
.signin-field input:autofill { box-shadow: 0 0 0 1000px #f3f4eb inset; -webkit-text-fill-color: var(--ink); }
.password-field input { padding-right: 70px; }
.password-toggle { position: absolute; top: 6px; right: 6px; bottom: 6px; min-width: 54px; padding: 0 11px; border: 0; border-radius: 5px; background: transparent; font-size: 14px; color: #687361; transition: background .2s ease, color .2s ease; }
.password-toggle:hover { color: #203b33; background: #f1efe4; }
.password-toggle[hidden] { display: none; }
.signin-submit { position: relative; width: 100%; min-height: 54px; margin-top: 5px; border: 1px solid #244638; border-radius: 8px; padding: 12px 19px; display: flex; align-items: center; justify-content: center; gap: 18px; background: linear-gradient(110deg, #234b3c, #193c30); color: #fffdf4; box-shadow: 0 5px 12px #1b3c301a, inset 0 1px #ffffff12; font-size: 14px; font-weight: 500; transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease; }
.signin-submit svg { position: absolute; right: 18px; width: 20px; height: 20px; color: #dfc590; transition: transform .2s ease; }
.signin-submit:hover:not(:disabled) { border-color: #66724e; box-shadow: 0 7px 18px #1b3c302b, inset 0 1px #ffffff1a; transform: translateY(-1px); }
.signin-submit:hover:not(:disabled) svg { transform: translateX(3px); }
.signin-submit:active:not(:disabled) { transform: translateY(0); box-shadow: 0 2px 5px #1b3c3020; }
.signin-help { display: flex; align-items: flex-start; gap: 10px; margin-top: 24px; }
.signin-help > svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 3px; color: #9d895d; }
.signin-help p { font-size: 14px; color: #586652; line-height: 1.95; }
.signin-help p > span { font-size: 14px; color: var(--muted); }
.signin-access { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 23px; padding-top: 19px; border-top: 1px solid var(--line); font-size: 14px; color: #727b6c; }
.signin-access svg { width: 14px; height: 14px; flex-shrink: 0; color: #8b987e; }
.signin-alert { padding: 12px 15px; margin-bottom: 22px; border: 1px solid #dfc4b7; border-left: 3px solid #a25740; border-radius: 6px; background: #f7ece5; color: #883b29; font-size: 14px; line-height: 1.9; overflow-wrap: anywhere; }
.signin-footer { min-height: 60px; padding: 10px 0 18px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #a3b1a2; font-size: 14px; }
.footer-divider { padding: 0 12px; color: #a99565; }

@media (min-width: 1600px) {
    .signin-wrap { max-width: 1352px; }
    .signin-card { min-height: 650px; }
    .institution-panel { padding: 38px 52px 30px; }
    .institution-art { min-height: 440px; margin-top: 20px; }
    .signin-panel { display: flex; align-items: center; }
}
@media (max-width: 1050px) {
    .signin-wrap { padding: 0 32px; }
    .institution-panel { padding: 30px 32px 25px; }
    .signin-panel { padding: 36px 32px 28px; }
    .panel-colophon { font-size: 14px; gap: 8px; }
}
@media (min-width: 761px) and (max-height: 820px) {
    .signin-header { min-height: 76px; }
    .signin-main { padding: 12px 0 16px; }
    .institution-panel { padding-top: 26px; padding-bottom: 22px; }
    .institution-art { min-height: 330px; margin: 8px 0 22px; }
    .institution-logo { height: 330px; width: min(100%, 330px); }
    .art-orbit { width: min(100%, 348px); }
    .art-orbit-inner { width: min(93%, 326px); }
    .panel-colophon { padding-top: 14px; }
    .colophon-mark { width: 30px; height: 30px; font-size: 14px; }
    .signin-panel { padding-top: 26px; padding-bottom: 22px; }
    .signin-heading { margin-bottom: 14px; }
    .signin-emblem { width: 34px; height: 34px; border-radius: 10px; }
    .signin-content h1 { font-size: 32px; }
    .signin-intro { margin: 6px 0 20px; }
    .signin-field { margin-bottom: 16px; }
    .signin-field input { min-height: 50px; padding-top: 11px; padding-bottom: 11px; }
    .signin-help { margin-top: 20px; }
    .signin-access { margin-top: 17px; padding-top: 15px; }
    .signin-footer { min-height: 44px; padding: 6px 0 14px; }
}
@media (max-width: 760px) {
    .signin-wrap { max-width: 600px; padding: 0 24px; }
    .signin-header { min-height: 90px; gap: 16px; }
    .institution { gap: 16px; }
    .institution-name { padding-left: 16px; font-size: 14px; }
    .institution-name small { font-size: 14px; }
    .site-return span { display: none; }
    .site-return { justify-content: center; width: 40px; min-height: 40px; padding: 0; flex-shrink: 0; }
    .signin-main { padding: 8px 0 18px; }
    .signin-card { grid-template-columns: 1fr; border-radius: 16px; }
    .institution-panel { min-height: 180px; padding: 26px 30px; border-radius: 15px 15px 0 0; }
    .institution-panel::after { inset: 9px; border-radius: 8px 8px 0 0; }
    .institution-art { flex: none; min-height: 190px; height: 190px; width: 100%; margin: 0; }
    .institution-logo { width: 180px; height: 180px; max-width: 100%; }
    .art-orbit { width: 200px; max-width: 100%; }
    .art-orbit-inner { width: 186px; max-width: 93%; }
    .signin-panel { padding: 30px 30px 25px; border-radius: 0 0 15px 15px; }
    .signin-heading { margin-bottom: 18px; }
    .signin-content h1 { font-size: 30px; }
    .signin-intro { margin: 7px 0 24px; }
    .signin-access { margin-top: 22px; }
    .signin-footer { min-height: 58px; padding: 0 0 20px; flex-wrap: wrap; justify-content: center; gap: 3px 16px; text-align: center; font-size: 14px; }
}
@media (max-width: 420px) {
    .signin-wrap { padding: 0 18px; }
    .signin-header { min-height: 80px; gap: 10px; }
    .institution { gap: 12px; }
    .institution-name { padding-left: 12px; font-size: 14px; }
    .institution-name small { display: none; }
    .site-return { width: 36px; min-height: 36px; }
    .institution-panel { min-height: 173px; padding: 24px; }
    .signin-panel { padding: 27px 23px 23px; }
    .signin-heading { gap: 10px; }
    .signin-help { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; }
}
@media (forced-colors: active) {
    .signin-card, .institution-panel, .signin-emblem, .signin-submit, .site-return { border: 1px solid CanvasText; }
    .institution-art { display: none; }
    .field-icon, .signin-help > svg, .signin-access svg { color: CanvasText; }
}

.institution-symbol { display: grid; place-items: center; width: 46px; height: 50px; flex-shrink: 0; color: #ddc38a; border: 1px solid #d1b37a55; border-radius: 12px; background: linear-gradient(130deg, #a9975821, #ffffff03); }
.institution-symbol svg { width: 28px; height: 28px; }
.institution-symbol.has-logo { width: 56px; height: 64px; border-color: transparent; background: none; }
.institution-symbol img { display: block; width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 760px) { .panel-colophon { display: none; } .institution-symbol { width: 38px; height: 42px; } .institution-symbol svg { width: 25px; height: 25px; } }
