:root {
  color-scheme: dark;
  --bg: #080a0b;
  --panel: #121618;
  --line: #293033;
  --text: #f4f1e8;
  --muted: #8d9699;
  --gold: #e9b949;
  --green: #2ecb91;
  --red: #ff6678;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 8%, rgba(233,185,73,.12), transparent 30rem),
    linear-gradient(180deg, #0b0e0f, var(--bg));
  color: var(--text);
}

.auth-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.auth-card {
  width: min(430px, 100%);
  border: 1px solid rgba(233,185,73,.28);
  border-radius: 22px;
  padding: 32px;
  background: linear-gradient(145deg, rgba(22,27,29,.98), rgba(12,15,16,.99));
  box-shadow: 0 30px 90px rgba(0,0,0,.45);
}

.auth-card.wide { width: min(540px, 100%); }

.auth-mark {
  display: grid;
  width: 52px;
  height: 52px;
  margin-bottom: 22px;
  place-items: center;
  border: 1px solid rgba(233,185,73,.55);
  border-radius: 15px;
  background: rgba(233,185,73,.12);
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 20px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
}

h1 { margin: 0; font-size: 27px; letter-spacing: -.035em; }
.intro { margin: 10px 0 25px; color: var(--muted); font-size: 13px; line-height: 1.6; }

label {
  display: block;
  margin: 15px 0 7px;
  color: #cbd0d1;
  font-size: 11px;
  font-weight: 700;
}

input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: 0;
  padding: 12px 13px;
  background: #090b0c;
  color: var(--text);
  font: inherit;
  font-size: 14px;
}

input:focus { border-color: rgba(233,185,73,.62); }

button, .button-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 11px;
  padding: 0 18px;
  background: var(--gold);
  color: #111;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}

form > button { width: 100%; margin-top: 22px; }
button:disabled { cursor: wait; opacity: .55; }
.secondary { border: 1px solid var(--line); background: transparent; color: var(--muted); }
.danger { border: 1px solid rgba(255,102,120,.3); background: transparent; color: var(--red); }
.account-actions { display: flex; gap: 10px; margin-top: 24px; }
.account-actions > * { flex: 1; }

.form-message { min-height: 18px; margin: 10px 0 0; font-size: 11px; line-height: 1.5; }
.form-message.error { color: var(--red); }
.form-message.success { color: var(--green); }
.security-note { margin: 22px 0 0; color: #687174; font-size: 10px; line-height: 1.55; }
.current-user { color: var(--gold); font-weight: 800; }

@media (max-width: 520px) {
  .auth-card { padding: 25px 21px; }
  .account-actions { flex-direction: column; }
}
