:root {
  --bg: #000;
  --fg: rgba(255, 255, 255, 0.94);
  --muted: rgba(255, 255, 255, 0.7);
  --line: rgba(255, 255, 255, 0.14);
  --line2: rgba(255, 255, 255, 0.28);
  --warn: #ffb347;
  --maxw: 440px;
  --pad-x: 20px;
  --radius: 14px;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: "Poppins", system-ui, sans-serif;
  font-weight: 300;
}
a { color: inherit; }

.auth {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px var(--pad-x) 64px;
}
.auth-header {
  margin-bottom: 28px;
  text-align: center;
}
.brand {
  margin: 0 0 20px;
  display: flex;
  justify-content: center;
  width: 100%;
}
.brand img {
  display: block;
  width: min(360px, 90vw);
  height: auto;
}
.auth-header h1 {
  margin: 0 0 8px;
  font-size: clamp(26px, 6vw, 34px);
  font-weight: 200;
}
.muted { color: var(--muted); }
.tagline.typewriter {
  margin: 12px 0 0;
  min-height: 3.2em;
  color: var(--muted);
  font-size: clamp(15px, 3.6vw, 18px);
  font-weight: 200;
  line-height: 1.55;
}
.typewriter-line {
  display: block;
}
.typewriter-line.is-typing::after {
  content: "";
  display: inline-block;
  width: 0.08em;
  height: 1.05em;
  margin-left: 2px;
  vertical-align: text-bottom;
  background: var(--fg);
  animation: caret-blink 0.85s step-end infinite;
}
@keyframes caret-blink {
  50% { opacity: 0; }
}
.hint { margin: 6px 0 0; font-size: 12px; color: var(--muted); }

.auth-form, .auth-actions { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 13px; color: var(--muted); }
.field input,
.field select {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line2);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  color-scheme: dark;
  caret-color: #fff;
}
.field input::placeholder,
.field select option {
  color: rgba(255, 255, 255, 0.45);
}
.field input:-webkit-autofill,
.field input:-webkit-autofill:hover,
.field input:-webkit-autofill:focus,
.field select:-webkit-autofill {
  -webkit-text-fill-color: #fff;
  caret-color: #fff;
  box-shadow: 0 0 0 1000px #1a1a1a inset;
  transition: background-color 99999s ease-out;
}
.check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}
.check input { width: auto; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--line2);
  background: transparent;
  cursor: pointer;
  text-decoration: none;
}
.btn.primary { background: rgba(255, 255, 255, 0.92); color: #000; border-color: transparent; }
.btn.subtle { opacity: 0.85; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.error {
  margin: 0;
  color: var(--warn);
  font-size: 14px;
}
.auth-footer { margin-top: 28px; font-size: 14px; }
.auth-footer a { text-decoration: underline; text-underline-offset: 3px; }

.member-card {
  margin: 0 0 24px;
  padding: 28px 24px;
  border-radius: 18px;
  border: 1px solid var(--line2);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02)),
    radial-gradient(circle at 90% 10%, rgba(255, 255, 255, 0.12), transparent 45%);
  min-height: 180px;
}
.card-brand {
  margin: 0 0 28px;
}
.card-brand img {
  display: block;
  width: min(140px, 45%);
  height: auto;
}
.card-name {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 200;
}
.card-number {
  margin: 0 0 16px;
  font-size: 16px;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}
.card-meta {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  text-transform: capitalize;
}
