@charset "UTF-8";
:root { color-scheme: light; --ink: #132d4e; --muted: #526781; --accent: #1761e8; --accent-dark: #0e4bc4; --pale: #eef5ff; --wash: #dceaff; --line: #dce5f0; --white: #fff; --error: #b42318; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--white); color: var(--ink); font: 18px/1.5 "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; -webkit-font-smoothing: antialiased; }
body[data-background="sage"] { --accent: #078577; --accent-dark: #006b60; --pale: #ecfbf7; --wash: #d2f3e8; }
body[data-background="pearl"] { --accent: #2159cc; --accent-dark: #1845a5; --pale: #fafcff; --wash: #e9eff9; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .6; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.page-shell { min-height: 100svh; display: flex; flex-direction: column; }
.site-header { width: min(1440px, 100%); margin: 0 auto; padding: 30px 64px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: flex; align-items: center; gap: 16px; color: var(--ink); text-decoration: none; }
.brand img { flex-shrink: 0; }
.brand-name { display: block; }
.institution { display: block; font-size: 28px; font-weight: 700; letter-spacing: .8px; line-height: 1.45; }
.brand-subtitle { display: block; margin-top: 6px; font-size: 12px; letter-spacing: .7px; color: var(--muted); }
html[lang="en"] .institution { font-size: 21px; letter-spacing: -.3px; }
html[lang="en"] .brand-subtitle { font-size: 14px; letter-spacing: .2px; }
.preferences, .language-switch, .background-picker, .background-options { display: flex; align-items: center; gap: 14px; }
.preferences { flex-shrink: 0; font-size: 15px; color: var(--muted); gap: 22px; }
.language-switch { gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 8px; }
.language-switch button { border: none; border-radius: 5px; padding: 6px 10px; min-height: 36px; background: var(--white); color: var(--muted); font-size: 15px; }
.language-switch button[aria-pressed="true"] { background: var(--pale); color: var(--accent-dark); font-weight: 650; }
.preference-divider { height: 20px; width: 1px; background: var(--line); }
.background-options { gap: 10px; }
.background-dot { position: relative; width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--white); box-shadow: 0 0 0 1px var(--line); padding: 0; }
.background-dot::after { position: absolute; content: ""; inset: -8px; }
.background-dot[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--accent); }
.background-dot.sky { background: #3a82ee; }
.background-dot.sage { background: #28b99b; }
.background-dot.pearl { background: #cdd9ef; }
.login-layout { flex: 1; width: min(1320px, 100%); margin: auto; padding: 24px 48px 32px; display: grid; grid-template-columns: minmax(0, 1fr) 468px; gap: 88px; align-items: center; }
.hero { position: relative; min-width: 0; }
.eyebrow { margin: 0 0 23px; display: flex; align-items: center; gap: 11px; font-size: 12px; font-weight: 650; letter-spacing: 1px; color: var(--accent); }
.eyebrow > span { display: block; width: 30px; height: 3px; background: var(--accent); }
h1 { margin: 0; font-size: clamp(46px, 4vw, 60px); font-weight: 700; letter-spacing: 2px; line-height: 1.35; }
h1 > span { display: block; }
.headline-accent { color: var(--accent); }
.hero-description { font-size: 20px; color: var(--muted); margin: 22px 0 0; line-height: 1.8; }
.science-visual { height: 270px; margin: 20px -12px 6px; display: flex; align-items: center; justify-content: center; background: radial-gradient(ellipse at 50% 65%, var(--wash), transparent 72%); }
.laboratory-equipment { display: block; width: 100%; height: 100%; object-fit: contain; }
.hero-benefits { display: flex; gap: 24px; padding-top: 18px; font-size: 17px; color: var(--ink); }
.hero-benefits > span { display: flex; align-items: center; gap: 9px; }
.hero-benefits > span::before { content: ""; width: 5px; height: 5px; background: var(--accent); border-radius: 50%; }
.login-panel { position: relative; padding: 42px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); box-shadow: 0 18px 65px #1c4b9810, 0 2px 6px #1c4b9805; }
.login-panel::before { content: ""; position: absolute; top: -1px; left: 42px; width: 56px; height: 4px; border-radius: 0 0 3px 3px; background: var(--accent); }
h2 { font-size: 34px; margin: 0; font-weight: 700; letter-spacing: 1px; }
.field { margin-top: 26px; }
.field label { display: block; margin-bottom: 11px; color: var(--ink); font-size: 18px; font-weight: 600; }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap > svg { position: absolute; left: 16px; width: 22px; height: 22px; fill: none; stroke: #647b97; stroke-width: 1.5; }
input:not([type="hidden"]) { width: 100%; min-width: 0; height: 58px; border: 1px solid #c8d5e6; border-radius: 8px; padding: 0 16px 0 48px; font-size: 18px; background: var(--white); color: var(--ink); transition: border-color .15s, box-shadow .15s; }
input::placeholder { color: #64748b; font-size: 18px; }
input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--pale); outline: none; }
#password { padding-right: 52px; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 6px; background: none; color: var(--muted); padding: 10px; }
.icon-button svg, .submit-button svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.password-toggle { position: absolute; right: 6px; }
.form-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 0 24px; font-size: 15px; }
.account-note { color: var(--muted); }
.text-button { border: 0; padding: 8px 0 8px 8px; min-height: 42px; background: none; color: var(--accent-dark); font-size: 16px; }
.text-button:hover { text-decoration: underline; }
.submit-button { display: flex; justify-content: center; align-items: center; gap: 20px; width: 100%; min-height: 58px; border: none; border-radius: 8px; background: var(--accent); color: var(--white); font-size: 20px; font-weight: 650; box-shadow: 0 6px 14px #1761e822; }
.submit-button:hover:not(:disabled) { background: var(--accent-dark); }
.privacy-note { display: flex; gap: 7px; align-items: center; justify-content: center; font-size: 14px; color: var(--muted); margin: 22px 0 0; }
.privacy-note svg { width: 17px; height: 17px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.5; }
.preview-notice { border-top: 1px solid var(--line); margin: 24px 0 -14px; padding-top: 14px; font-size: 13px; color: var(--muted); line-height: 1.7; }
.form-message { position: relative; padding: 11px 48px 11px 13px; margin: 0 0 18px; border: 1px solid #f3c7c3; border-radius: 7px; background: #fff3f1; font-size: 16px; color: var(--error); line-height: 1.7; overflow-wrap: anywhere; }
.message-close { position: absolute; top: 0; right: 0; color: inherit; }
.form-message[data-kind="info"] { background: var(--pale); border-color: var(--line); color: var(--accent-dark); }
.caps-warning { font-size: 15px; color: #a14708; margin: 7px 0 0; }
.site-footer { padding: 22px 32px 26px; border-top: 1px solid #e7edf5; text-align: center; color: var(--muted); font-size: 14px; line-height: 1.7; }
.site-footer p { margin: 2px 0; }
.footer-details { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; margin: 3px 0; }
.footer-separator { color: #b3c0d1; }
.icp-link { text-decoration: none; }
.icp-link:hover { color: var(--accent); text-decoration: underline; }
html[lang="en"] h1 { font-size: 51px; letter-spacing: -1.4px; line-height: 1.25; }
html[lang="en"] .hero-description { font-size: 19px; }
html[lang="en"] .hero-benefits { font-size: 16px; gap: 18px; }
.captcha-dialog { width: min(512px, calc(100vw - 32px)); max-height: calc(100svh - 32px); padding: 26px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); background: var(--white); box-shadow: 0 25px 100px #10274840; overflow-y: auto; }
.captcha-dialog::backdrop { background: #0b244e66; }
.captcha-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.captcha-heading h2 { font-size: 26px; letter-spacing: .3px; }
.captcha-eyebrow { font-size: 11px; letter-spacing: 1.6px; color: var(--accent); margin: 0 0 5px; font-weight: 650; }
.captcha-close { align-self: flex-start; }
.captcha-prompt { margin: 20px 0 12px; font-size: 18px; line-height: 1.8; }
.captcha-prompt strong { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; color: var(--accent-dark); font-size: 18px; line-height: 1.5; }
.captcha-target { padding: 6px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--pale); }
.captcha-canvas { position: relative; overflow: hidden; background: var(--pale); border: 1px solid var(--line); border-radius: 8px; min-height: 120px; }
.captcha-canvas img { display: block; width: 100%; height: auto; user-select: none; touch-action: manipulation; cursor: crosshair; }
.captcha-canvas[aria-busy="true"] { opacity: .55; pointer-events: none; }
.captcha-canvas:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.captcha-mark { position: absolute; width: 28px; height: 28px; transform: translate(-50%, -50%); border: 2px solid var(--white); border-radius: 50%; background: var(--accent); color: var(--white); font-size: 15px; display: flex; align-items: center; justify-content: center; pointer-events: none; box-shadow: 0 1px 7px #16345d35; }
.captcha-cursor { position: absolute; width: 28px; height: 28px; transform: translate(-50%, -50%); border: 2px dashed var(--ink); border-radius: 50%; pointer-events: none; }
.captcha-toolbar { display: flex; align-items: center; gap: 18px; margin-top: 7px; font-size: 15px; }
.captcha-toolbar > span { margin-right: auto; color: var(--muted); }
.captcha-hint { font-size: 13px; color: var(--muted); margin: 10px 0 0; line-height: 1.8; }
.captcha-error { color: var(--error); font-size: 16px; margin: 8px 0 0; }
.noscript-notice { text-align: center; padding: 16px; }
@media (max-width: 1150px) {
    .site-header { padding: 26px 36px; }.institution { font-size: 25px; }.brand-subtitle { font-size: 10px; }
    .login-layout { padding: 38px 40px 50px; gap: 45px; grid-template-columns: minmax(0,1fr) 430px; }.login-panel { padding: 34px; }
    h1 { font-size: 47px; } html[lang="en"] h1 { font-size: 42px; } html[lang="en"] .institution { font-size: 18px; }
    .preferences { gap: 15px; }.hero-benefits { gap: 18px; font-size: 16px; }
}
@media (min-width: 851px) {
    .site-footer { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 24px; padding: 12px 32px; }
}
@media (min-width: 851px) and (max-height: 900px) {
    .site-header { padding: 16px 48px; }.login-layout { padding: 12px 48px 16px; }
    .login-panel { padding: 24px 34px; }
    .field { margin-top: 18px; }.field label { margin-bottom: 8px; } input:not([type="hidden"]) { height: 54px; }
    .form-meta { margin: 8px 0 12px; }.privacy-note { margin-top: 14px; }.preview-notice { margin: 14px 0 0; padding-top: 10px; }
    .eyebrow { margin-bottom: 14px; } h1 { font-size: clamp(40px, 4vw, 52px); } html[lang="en"] h1 { font-size: 43px; }
    .hero-description { margin-top: 14px; }.science-visual { height: clamp(180px, 26svh, 240px); margin: 12px -12px 4px; }.hero-benefits { padding-top: 10px; }
    .login-panel:has(.form-message:not([hidden])) { padding-top: 14px; padding-bottom: 14px; }
    .login-panel:has(.form-message:not([hidden])) .form-meta { margin: 2px 0 4px; }
    .login-panel:has(.form-message:not([hidden])) .field { margin-top: 12px; }
    .form-message { margin-bottom: 8px; line-height: 1.5; }
}
@media (min-width: 851px) and (max-height: 760px) {
    .site-header { padding: 10px 36px; }.login-layout { padding: 8px 40px; }.site-footer { padding: 8px 24px; }
    .login-panel { padding: 14px 32px; }#login-heading { line-height: 1.25; }
    .field { margin-top: 12px; }.field label { margin-bottom: 6px; } input:not([type="hidden"]) { height: 52px; }
    .form-meta { margin: 2px 0 4px; }.submit-button { min-height: 54px; }.privacy-note { margin-top: 8px; }.preview-notice { margin-top: 10px; padding-top: 8px; }
    .eyebrow { margin-bottom: 8px; } h1 { font-size: 46px; } html[lang="en"] h1 { font-size: 40px; }.hero-description { margin-top: 10px; }
    .science-visual { height: clamp(170px, 30svh, 210px); }
    .login-panel:has(.form-message:not([hidden])) { padding-top: 8px; padding-bottom: 8px; }
    .login-panel:has(.form-message:not([hidden])) .field { margin-top: 6px; }
    .form-message { padding: 6px 48px 6px 13px; }
}
@media (max-width: 850px) {
    .site-header { flex-wrap: wrap; gap: 18px; }.preferences { margin-left: auto; }
    .login-layout { max-width: 590px; display: flex; flex-direction: column; gap: 30px; padding: 20px 30px 40px; }
    .hero { width: 100%; text-align: center; }.eyebrow { justify-content: center; margin-bottom: 12px; }
    h1 { font-size: 34px; letter-spacing: 1px; } h1 > span { display: inline; }.headline-accent { margin-left: 4px; }
    .hero-description { font-size: 18px; margin: 12px 0 0; }.science-visual, .hero-benefits { display: none; }.login-panel { width: 100%; }
    .site-footer { padding: 18px 24px 22px; } html[lang="en"] h1 { font-size: 34px; } html[lang="en"] .hero-description { font-size: 18px; }
}
@media (max-width: 520px) {
    .site-header { padding: 24px 22px 16px; gap: 16px; }.brand { gap: 11px; width: 100%; }.brand img { width: 44px; height: 44px; }
    .institution { font-size: 20px; letter-spacing: .1px; }.brand-subtitle { font-size: 8px; letter-spacing: .3px; }
    .preferences { gap: 16px; }.background-picker { gap: 12px; }.preference-divider { display: none; }
    .login-layout { padding: 12px 22px 32px; gap: 25px; }.eyebrow { font-size: 10px; letter-spacing: .3px; margin-bottom: 12px; }.eyebrow > span { width: 18px; height: 2px; }
    h1 { font-size: 31px; letter-spacing: 0; }.hero-description { font-size: 17px; }
    .login-panel { padding: 28px 25px 32px; border-radius: 12px; }.login-panel::before { left: 25px; }
    h2 { font-size: 34px; }.field { margin-top: 24px; }
    .form-meta { font-size: 14px; }.text-button { font-size: 15px; }.privacy-note { font-size: 13px; }.preview-notice { font-size: 12px; }
    .site-footer { font-size: 13px; }.footer-details { gap: 8px; }
    html[lang="en"] .institution { font-size: 16px; line-height: 1.45; } html[lang="en"] .brand-subtitle { font-size: 10px; }
    html[lang="en"] h1 { font-size: 32px; line-height: 1.3; } html[lang="en"] h1 > span { display: block; margin-left: 0; } html[lang="en"] .hero-description { font-size: 17px; }
    .captcha-dialog { padding: 20px; }.captcha-toolbar { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
