:root {
  color-scheme: light;
  --paper: #f0eee5;
  --paper-bright: #fbfaf5;
  --ink: #172737;
  --ink-soft: #52606a;
  --ink-faint: #5f6c74;
  --line-strong: rgba(23, 39, 55, .38);
  --night: #142433;
  --on-dark: #fbfaf5;
  --on-dark-muted: #c3d0d2;
  --signal: #e45e43;
  --signal-deep: #b8422d;
  --mint: #7daecb;
  --sun: #edca71;
  --focus: #095b81;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--paper); scroll-behavior: smooth; }
body { min-width: 320px; margin: 0; background: var(--paper); color: var(--ink); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: rgba(228, 94, 67, .18); touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }

.portfolio-skip-link { position: fixed; z-index: 100; top: 12px; left: 12px; padding: 11px 15px; background: var(--signal); color: #fff; font-weight: 850; transform: translateY(-170%); }
.portfolio-skip-link:focus { transform: translateY(0); }
.public-brand { display: inline-flex; min-width: 0; align-items: center; gap: 11px; }
.public-brand > span:first-child { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border: 1px solid var(--ink); background: var(--night); color: var(--on-dark); font-size: 10px; font-weight: 900; letter-spacing: .1em; }
.public-brand-copy { display: grid; min-width: 0; gap: 1px; }
.public-brand-copy strong { font-size: 13px; letter-spacing: -.025em; }
.public-brand-copy small { overflow: hidden; color: var(--ink-soft); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 4px rgba(228, 94, 67, .14); }
.portfolio-button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 10px; border: 1px solid var(--ink); padding: 0 16px; background: transparent; color: var(--ink); cursor: pointer; font-size: 13px; font-weight: 840; transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.portfolio-button.primary { border-color: var(--signal); background: var(--signal); color: var(--night); box-shadow: 0 7px 20px rgba(180, 66, 45, .2); }

.login-page { position: relative; isolation: isolate; display: grid; min-height: 100svh; grid-template-columns: minmax(0, .92fr) minmax(440px, 1.08fr); overflow: clip; background: var(--paper); }
.login-panel { position: relative; z-index: 1; display: grid; min-height: 100svh; min-width: 0; align-content: center; padding: clamp(30px, 5.8vw, 80px); background: linear-gradient(145deg, var(--paper-bright), var(--paper) 72%); }
.login-panel::before { position: absolute; top: clamp(22px, 5vw, 72px); left: clamp(22px, 5vw, 72px); width: 42px; height: 1px; content: ""; background: var(--signal); box-shadow: 54px 0 0 var(--mint); }
.login-panel-content { width: min(100%, 500px); }
.login-panel .public-brand { margin-bottom: clamp(34px, 6vh, 68px); }
.login-kicker, .login-aside-index { display: flex; align-items: center; gap: 9px; margin: 0; color: var(--signal-deep); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; font-weight: 850; letter-spacing: .1em; line-height: 1.45; text-transform: uppercase; }
.login-copy h1 { max-width: 610px; margin: 14px 0 0; font-size: clamp(43px, 5vw, 68px); font-weight: 760; letter-spacing: -.08em; line-height: .92; text-wrap: balance; }
.login-copy h1 em, .login-aside h2 em { font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
.login-copy > p:last-child { max-width: 530px; margin: 16px 0 0; color: var(--ink-soft); font-size: 16px; line-height: 1.5; }
.login-form { display: grid; gap: 14px; margin-top: 28px; }
.login-field { display: grid; gap: 8px; }
.login-field label { color: var(--ink); font-size: 12px; font-weight: 850; }
.login-field input { width: 100%; min-height: 51px; border: 1px solid var(--line-strong); border-radius: 0; padding: 0 14px; background: var(--paper-bright); color: var(--ink); box-shadow: inset 3px 0 0 transparent; transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease; }
.login-field input:hover { border-color: var(--ink-soft); }
.login-field input:focus-visible { border-color: var(--focus); background: #fff; box-shadow: inset 3px 0 0 var(--signal), 0 0 0 3px color-mix(in srgb, var(--focus) 19%, transparent); }
.login-submit { width: 100%; min-height: 52px; justify-content: space-between; margin-top: 4px; padding: 0 18px; box-shadow: 5px 5px 0 var(--night); }
.login-submit:hover { box-shadow: 7px 7px 0 var(--night); transform: translate(-2px, -2px); }
.login-security-note { display: grid; grid-template-columns: auto 1fr; gap: 12px; margin: 20px 0 0; color: var(--ink-faint); font-size: 12px; line-height: 1.5; }
.login-security-note > span:first-child { color: var(--signal-deep); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; font-weight: 900; letter-spacing: .08em; }
.login-security-note strong { margin-right: 4px; color: var(--ink); }
.login-alert { margin-top: 25px; border: 1px solid rgba(178, 66, 45, .55); border-left: 4px solid var(--signal); padding: 12px 14px; background: rgba(228, 94, 67, .1); color: #7a2619; font-size: 13px; font-weight: 700; line-height: 1.45; }

.login-aside { position: relative; display: grid; min-width: 0; overflow: hidden; place-items: center; padding: clamp(34px, 7vw, 104px); border-left: 1px solid rgba(255, 255, 255, .18); background: var(--night); color: var(--on-dark); }
.login-aside::before { position: absolute; inset: 0; content: ""; background-image: linear-gradient(rgba(189, 226, 221, .09) 1px, transparent 1px), linear-gradient(90deg, rgba(189, 226, 221, .09) 1px, transparent 1px); background-size: 66px 66px; mask-image: linear-gradient(to bottom, #000, rgba(0, 0, 0, .25)); }
.login-aside::after { position: absolute; top: -20%; right: -22%; width: min(42vw, 620px); aspect-ratio: 1; border: 1px solid rgba(125, 174, 203, .38); border-radius: 50%; content: ""; box-shadow: 0 0 0 42px rgba(125, 174, 203, .06), 0 0 0 84px rgba(228, 94, 67, .04); }
.login-aside-content { position: relative; z-index: 1; width: min(100%, 545px); }
.login-aside-index { color: var(--mint); }
.login-aside-index span { color: var(--sun); }
.login-aside h2 { max-width: 520px; margin: 20px 0 0; font-size: clamp(43px, 5.1vw, 76px); font-weight: 760; letter-spacing: -.08em; line-height: .9; text-wrap: balance; }
.login-aside h2 em { color: var(--mint); }
.login-aside-copy { max-width: 430px; margin: 22px 0 0; color: var(--on-dark-muted); font-size: 17px; line-height: 1.55; }
.login-route { display: grid; grid-template-columns: auto minmax(24px, 1fr) auto minmax(24px, 1fr) auto; align-items: center; gap: 10px; margin-top: 32px; color: var(--sun); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.login-route i { height: 1px; background: var(--signal); }

@media (hover: hover) and (pointer: fine) {
  .public-brand:hover > span:first-child { background: var(--signal); transform: rotate(-4deg); }
  .portfolio-button:active { transform: translateY(0) scale(.98); }
}
@media (max-width: 980px) {
  .login-page { grid-template-columns: 1fr; }
  .login-aside { display: none; }
}
@media (min-width: 981px) and (max-height: 800px) {
  .login-page { grid-template-columns: 1fr; }
  .login-aside { display: none; }
  .login-panel { padding-block: clamp(22px, 4vh, 34px); }
  .login-panel .public-brand { margin-bottom: clamp(24px, 4vh, 36px); }
  .login-form { margin-top: 22px; }
  .login-security-note { margin-top: 16px; }
}
@media (max-width: 760px) {
  .login-panel { min-height: auto; padding: 58px 24px 48px; }
  .login-panel::before { top: 21px; left: 24px; }
  .login-panel .public-brand { margin-bottom: 52px; }
  .public-brand > span:first-child { width: 34px; height: 34px; flex-basis: 34px; }
  .public-brand-copy small { display: none; }
}
@media (prefers-reduced-motion: reduce), (update: slow) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
