:root {
  --ink: #183033;
  --muted: #657478;
  --line: #d6e0e1;
  --paper: #f4f7f7;
  --surface: #ffffff;
  --teal: #13756f;
  --teal-dark: #0b5753;
  --teal-pale: #dfeeed;
  --danger: #a93632;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { color-scheme: light; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--paper); color: var(--ink); font: 14px/1.5 var(--font); }
button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }

.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(360px, 1.02fr) minmax(430px, .98fr); }
.platform-context { position: relative; min-height: 100vh; padding: clamp(32px, 5vw, 76px); display: flex; flex-direction: column; overflow: hidden; background-color: #153c3e; color: white; }
.platform-context::before { content: ""; position: absolute; inset: 0; opacity: .22; background-image: linear-gradient(rgba(255,255,255,.17) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.17) 1px, transparent 1px); background-size: 52px 52px; mask-image: linear-gradient(to bottom right, black, transparent 75%); }
.platform-context::after { content: ""; position: absolute; right: -16%; bottom: -22%; width: 68%; aspect-ratio: 1; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; box-shadow: 0 0 0 50px rgba(255,255,255,.035), 0 0 0 100px rgba(255,255,255,.025); }
.brand-lockup, .platform-copy, .workflow { position: relative; z-index: 1; }
.brand-lockup { display: flex; align-items: center; gap: 12px; font-weight: 650; letter-spacing: -.01em; }
.brand-mark { width: 32px; height: 26px; display: flex; align-items: end; gap: 3px; }
.brand-mark i { width: 4px; border-radius: 1px 1px 0 0; background: #8ec8c3; }
.brand-mark i:nth-child(1) { height: 8px; }
.brand-mark i:nth-child(2) { height: 17px; }
.brand-mark i:nth-child(3) { height: 12px; }
.brand-mark i:nth-child(4) { height: 24px; background: white; }
.brand-mark i:nth-child(5) { height: 19px; }
.platform-copy { margin: auto 0; max-width: 580px; }
.platform-copy p { margin: 0 0 16px; color: #a9cfcc; font-size: 14px; }
.platform-copy h1 { margin: 0; max-width: 12em; font-size: clamp(38px, 4.5vw, 60px); font-weight: 680; line-height: 1.12; letter-spacing: -.055em; }
.workflow { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; border-top: 1px solid rgba(255,255,255,.26); }
.workflow li { min-width: 0; padding: 15px 14px 0 0; }
.workflow span, .workflow strong { display: block; }
.workflow span { margin-bottom: 4px; color: #8ec8c3; font-size: 12px; }
.workflow strong { font-size: 12px; font-weight: 500; line-height: 1.45; }

.login-panel { min-height: 100vh; padding: 32px; display: grid; place-items: center; background: var(--paper); }
.login-card { width: min(100%, 410px); padding: 38px 40px 32px; border: 1px solid var(--line); background: var(--surface); box-shadow: 0 18px 50px rgba(27, 60, 63, .08); }
.login-card header { margin-bottom: 28px; }
.access-state { display: inline-flex; align-items: center; gap: 8px; color: var(--teal); font-size: 12px; font-weight: 650; }
.access-state i { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px var(--teal-pale); }
.login-card h2 { margin: 18px 0 6px; font-size: 29px; line-height: 1.2; letter-spacing: -.035em; }
.login-card header p, .session-note { margin: 0; color: var(--muted); }
form { display: grid; gap: 18px; }
label { display: grid; gap: 7px; }
label > span:first-child { color: #3f5356; font-size: 13px; font-weight: 600; }
input { width: 100%; height: 44px; padding: 0 12px; border: 1px solid #b9c9ca; border-radius: 4px; outline: none; background: white; color: var(--ink); }
input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(19,117,111,.13); }
.password-field { position: relative; display: block; }
.password-field input { padding-right: 62px; }
.password-field button { position: absolute; top: 5px; right: 5px; height: 34px; padding: 0 9px; border: 0; background: transparent; color: var(--teal); cursor: pointer; }
.login-button { height: 44px; border: 1px solid var(--teal); border-radius: 4px; background: var(--teal); color: white; font-weight: 650; cursor: pointer; }
.login-button:hover { border-color: var(--teal-dark); background: var(--teal-dark); }
.login-button:focus-visible, .password-field button:focus-visible { outline: 3px solid rgba(19,117,111,.25); outline-offset: 2px; }
.login-button:disabled { cursor: wait; opacity: .68; }
.login-error { margin: -4px 0 0; padding: 9px 11px; border-left: 3px solid var(--danger); background: #fff2f1; color: var(--danger); font-size: 13px; }
.session-note { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12px; }

@media (max-width: 820px) {
  .login-shell { grid-template-columns: 1fr; }
  .platform-context { min-height: 310px; padding: 28px 24px; }
  .platform-copy { margin: 52px 0; }
  .platform-copy h1 { font-size: clamp(34px, 10vw, 48px); }
  .workflow { display: none; }
  .login-panel { min-height: auto; padding: 26px 16px 40px; place-items: start center; }
  .login-card { padding: 28px 24px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}
