:root {
  color-scheme: dark;
  --page: #101111;
  --surface-inset: #171818;
  --text: #efeee8;
  --text-secondary: #a5a6a0;
  --accent: #e9ba68;
  --accent-hover: #f0c982;
  --border: #333534;
  --control-border: #60635e;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  color: var(--text);
  background: var(--page);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
button, a { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, .form-error:focus { outline: 2px solid var(--accent); outline-offset: 4px; }
input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-color: var(--accent); }
button:disabled { cursor: wait; opacity: .65; }
svg { flex-shrink: 0; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: var(--page); }
.site-header, .site-footer { width: calc(100% - 128px); max-width: 1312px; margin-inline: auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 108px; border-bottom: 1px solid var(--border); }
.brand { display: inline-flex; min-height: 44px; align-items: center; font-size: 28px; font-weight: 650; letter-spacing: -1.2px; }
.brand-dot { color: var(--accent); }
.workspace-label { color: var(--text-secondary); font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; }
main { width: calc(100% - 128px); max-width: 1184px; margin: auto; padding-block: 88px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: clamp(48px, 8vw, 112px); }
.eyebrow { color: var(--text-secondary); font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 11px; font-weight: 400; letter-spacing: 1.4px; line-height: 1.6; margin: 0 0 26px; }
.section-number { color: var(--accent); margin-right: 10px; }
h1 { font-size: clamp(44px, 5.15vw, 74px); font-weight: 450; letter-spacing: -.065em; line-height: 1.08; margin: 0; }
h1 span { color: var(--text-secondary); }
.portfolio-description { font-size: 16px; color: var(--text-secondary); line-height: 1.65; max-width: 330px; margin: 28px 0 52px; }
.portfolio-index { margin: 0; max-width: 424px; font-size: 13px; }
.portfolio-index > div { display: grid; grid-template-columns: 104px 1fr; gap: 12px; border-top: 1px solid var(--border); padding: 15px 0; }
.portfolio-index dt { color: var(--text); }
.portfolio-index dd { margin: 0; color: var(--text-secondary); }
.login-card { border-left: 1px solid var(--border); padding-left: clamp(32px, 5vw, 72px); }
.login-card > .eyebrow { color: var(--accent); margin-bottom: 12px; }
h2 { font-size: 27px; font-weight: 500; letter-spacing: -.8px; line-height: 1.25; margin: 0 0 12px; text-wrap: balance; }
.intro { color: var(--text-secondary); font-size: 14px; line-height: 1.65; margin: 0 0 32px; }
form { display: flex; flex-direction: column; }
label { color: var(--text); font-size: 13px; font-weight: 450; margin-bottom: 9px; }
input { width: 100%; min-width: 0; min-height: 52px; padding: 12px 14px; font-size: 16px; line-height: 1.5; border: 1px solid var(--control-border); border-radius: 2px; background: var(--surface-inset); color: var(--text); transition: border-color .15s ease; }
input:hover { border-color: var(--text-secondary); }
input::placeholder { color: #959892; opacity: 1; }
#email { margin-bottom: 22px; }
.password-field { position: relative; }
.setup-fields { display: flex; flex-direction: column; }
.password-help { color: var(--text-secondary); font-size: 12px; line-height: 1.5; margin: 10px 0 22px; }
.password-field input { padding-right: 72px; }
.show-password { position: absolute; inset: 4px 4px 4px auto; min-width: 60px; min-height: 44px; padding: 0 10px; border: 0; border-radius: 0; background: transparent; color: var(--text-secondary); font-size: 12px; font-weight: 500; transition: background .15s ease, color .15s ease; }
.show-password:hover { background: #292b29; color: var(--text); }
.show-password:active { background: #393b37; }
.show-password:focus-visible { outline-offset: -2px; }
.submit-button { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 12px 18px; margin: 28px 0 24px; border: 1px solid var(--accent); border-radius: 2px; background: var(--accent); color: var(--page); font-size: 14px; font-weight: 600; line-height: 1.5; transition: background .15s ease; }
.submit-button:hover:not(:disabled) { background: var(--accent-hover); }
.submit-button:active:not(:disabled) { background: #dba64f; }
.form-error { border: 1px solid #9e665b; border-radius: 2px; background: #2c1d19; color: #f2b4a8; padding: 12px; margin: 0 0 20px; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.card-footer { display: flex; align-items: flex-start; gap: 9px; color: var(--text-secondary); font-size: 12px; line-height: 1.5; }
.card-footer svg { margin-top: 2px; }
.site-footer { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--border); padding-block: 25px; color: var(--text-secondary); font-size: 11px; letter-spacing: .15px; }
.screen-reader-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 1050px) {
  .site-header, .site-footer, main { width: calc(100% - 80px); }
  main { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
  .login-card { padding-left: 32px; }
  .portfolio-index > div { grid-template-columns: 76px 1fr; font-size: 12px; }
}
@media (max-width: 720px) {
  .site-header, .site-footer, main { width: calc(100% - 48px); }
  .site-header { min-height: 84px; gap: 16px; }
  .brand { font-size: 25px; }
  .workspace-label { max-width: 95px; text-align: right; font-size: 10px; line-height: 1.6; letter-spacing: 1px; }
  main { max-width: 440px; display: block; padding-block: 40px 48px; }
  .portfolio-intro > .eyebrow { margin-bottom: 20px; }
  h1 { font-size: clamp(40px, 8vw, 56px); }
  .portfolio-description { max-width: 290px; margin: 20px 0 32px; font-size: 14px; }
  .portfolio-index { display: none; }
  .login-card { border-left: 0; border-top: 1px solid var(--border); padding: 28px 0 0; }
  .login-card > .eyebrow { display: none; }
  h2 { font-size: 22px; margin-bottom: 8px; }
  .intro { margin-bottom: 24px; font-size: 13px; }
  .submit-button { margin-top: 24px; }
  .site-footer { flex-wrap: wrap; padding-block: 20px; gap: 8px 16px; font-size: 10px; }
}
@media (max-width: 360px) {
  .site-header, .site-footer, main { width: calc(100% - 36px); }
  .site-header { min-height: 76px; }
  .brand { font-size: 23px; }
  main { padding-top: 32px; }
  h1 { font-size: 39px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
