:root {
  --ink: #0a0a0a;
  --paper: #fcfaf5;
  --paper-2: #f5f3ed;
  --hairline: #d1d5db;
  --soft: #e5e7eb;
  --muted: #6b7280;
  --teal: #0d9488;
  --teal-dark: #0f766e;
  --teal-bg: #ecfdf5;
  --warn: #b45309;
  --error-bg: #fef2f2;
  --error-text: #991b1b;
  --error-border: #fecaca;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: "Inter", "Source Sans 3", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  background: var(--paper-2);
  color: var(--ink);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(at 18% 20%, rgba(13, 148, 136, 0.04) 0%, transparent 45%),
    radial-gradient(at 82% 80%, rgba(13, 148, 136, 0.03) 0%, transparent 50%);
  background-attachment: fixed;
}

.login-shell {
  max-width: 540px;
  margin: 0 auto;
  padding: 48px 32px 32px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.login-frontispiece {
  text-align: center;
  margin-bottom: 28px;
}

.login-hero {
  width: 100%;
  max-width: 460px;
  height: auto;
  display: block;
  margin: 0 auto 18px;
  border: 1px solid var(--hairline);
  background: var(--paper);
  box-shadow: 0 1px 0 rgba(0,0,0,0.02), 0 24px 60px -30px rgba(15, 118, 110, 0.18);
}

.login-eyebrow {
  margin: 0 0 4px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 700;
}

.login-title {
  margin: 0 0 12px;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  font-variant: small-caps;
}

.login-descriptor {
  margin: 0 auto;
  max-width: 380px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  font-style: italic;
}

.login-card {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-top: 3px solid var(--ink);
  padding: 28px 32px 32px;
  margin-bottom: 24px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.02);
}

.login-form { display: flex; flex-direction: column; gap: 16px; }

.login-field { display: flex; flex-direction: column; gap: 6px; }

.login-field label {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 700;
}

.login-field input {
  font-family: inherit;
  font-size: 14px;
  padding: 10px 12px;
  border: 1px solid var(--hairline);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  outline: none;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.login-field input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-bg);
}

.login-error {
  font-size: 12px;
  background: var(--error-bg);
  color: var(--error-text);
  border: 1px solid var(--error-border);
  padding: 8px 12px;
  margin: 4px 0 0;
}

.login-submit {
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--teal);
  color: var(--paper);
  border: 1px solid var(--teal-dark);
  padding: 12px 16px;
  cursor: pointer;
  margin-top: 4px;
  transition: background-color 120ms ease, transform 60ms ease;
}

.login-submit:hover { background: var(--teal-dark); }
.login-submit:active { transform: translateY(1px); }

.login-fineprint {
  margin: 14px 0 0;
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  font-style: italic;
}

.login-footer { margin-top: auto; padding-top: 24px; }

.login-foot-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 10px;
  font-size: 11px;
  color: var(--ink);
  margin-bottom: 4px;
}
.login-foot-row.muted { color: var(--muted); }
.login-foot-row strong { color: var(--ink); font-weight: 700; }
.login-foot-row a { color: var(--teal); text-decoration: none; }
.login-foot-row a:hover { text-decoration: underline; }

@media (max-width: 480px) {
  .login-shell { padding: 24px 16px; }
  .login-card { padding: 20px 18px; }
  .login-title { font-size: 24px; }
}
