:root {
  --auth-ink: #100d09;
  --auth-gold: #d5ae2e;
  --auth-gold-deep: #a57d13;
  --auth-cream: #fff8ec;
  --auth-muted: #8a7a66;
  --auth-line: rgba(255, 255, 255, 0.18);
}

* {
  box-sizing: border-box;
}

body.auth-body {
  min-height: 100vh;
  margin: 0;
  color: var(--auth-cream);
  background:
    radial-gradient(circle at 82% 12%, rgba(213, 174, 46, 0.32), transparent 20rem),
    linear-gradient(135deg, #100d09 0%, #070604 58%, #171108 100%);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 460px);
  gap: 2rem;
  align-items: center;
  width: min(1120px, calc(100% - 2rem));
  min-height: 100vh;
  margin: 0 auto;
  padding: 3rem 0;
}

.auth-brand {
  display: inline-flex;
  gap: 0.85rem;
  align-items: center;
  margin-bottom: 2.5rem;
  color: inherit;
  text-decoration: none;
}

.auth-brand img {
  width: 64px;
  height: 52px;
  object-fit: contain;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.95);
}

.auth-brand strong {
  display: block;
  font-size: 1.2rem;
  letter-spacing: 0.2em;
}

.auth-brand small {
  color: var(--auth-gold);
  font-weight: 900;
  letter-spacing: 0.16em;
}

.auth-copy .eyebrow {
  margin: 0 0 1rem;
  color: var(--auth-gold);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.auth-copy h1 {
  max-width: 620px;
  margin: 0 0 1.2rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.6rem, 8vw, 7.5rem);
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: -0.065em;
}

.auth-copy p {
  max-width: 560px;
  color: #d9cbb5;
  font-size: 1.1rem;
  line-height: 1.7;
}

.auth-points {
  display: grid;
  gap: 0.85rem;
  max-width: 520px;
  margin-top: 2rem;
}

.auth-points span {
  border: 1px solid var(--auth-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.85rem 1rem;
  color: #eadcc4;
  font-weight: 800;
}

.auth-card {
  border: 1px solid var(--auth-line);
  border-radius: 34px;
  background: rgba(255, 248, 236, 0.95);
  color: var(--auth-ink);
  padding: 2rem;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
}

.auth-card h2 {
  margin: 0 0 0.6rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.6rem;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.auth-card > p {
  margin: 0 0 1.5rem;
  color: var(--auth-muted);
}

.auth-form {
  display: grid;
  gap: 1rem;
}

.auth-form label {
  display: grid;
  gap: 0.38rem;
  color: #4c4030;
  font-weight: 900;
}

.auth-form input {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(16, 13, 9, 0.14);
  border-radius: 16px;
  background: #fff;
  color: var(--auth-ink);
  outline: none;
  padding: 0 1rem;
  font: inherit;
}

.auth-form input:focus {
  border-color: rgba(213, 174, 46, 0.85);
  box-shadow: 0 0 0 4px rgba(213, 174, 46, 0.16);
}

.auth-button,
.auth-link-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--auth-gold), #f4d66c);
  color: var(--auth-ink);
  padding: 0.88rem 1.2rem;
  font: inherit;
  font-weight: 950;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 14px 32px rgba(165, 125, 19, 0.24);
}

.auth-secondary {
  border: 1px solid rgba(16, 13, 9, 0.12);
  background: #fff;
  box-shadow: none;
}

.auth-switch,
.auth-footer {
  margin: 1rem 0 0;
  color: var(--auth-muted);
  text-align: center;
}

.auth-switch a,
.auth-footer a {
  color: var(--auth-gold-deep);
  font-weight: 950;
  text-decoration: none;
}

.auth-alert {
  border-radius: 16px;
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  font-weight: 800;
}

.auth-alert.error {
  background: #ffe9e9;
  color: #8d1e1e;
}

.auth-alert.success {
  background: #eaf8e8;
  color: #1d6d2c;
}

.account-grid {
  display: grid;
  gap: 1rem;
  margin: 1.3rem 0;
}

.account-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid rgba(16, 13, 9, 0.1);
  border-radius: 18px;
  background: #fff;
  padding: 1rem;
}

.account-row span {
  color: var(--auth-muted);
  font-weight: 800;
}

.account-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

@media (max-width: 860px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-copy h1 {
    font-size: clamp(3.2rem, 13vw, 5.4rem);
  }
}

@media (max-width: 480px) {
  .auth-card {
    border-radius: 24px;
    padding: 1.25rem;
  }

  .account-actions {
    grid-template-columns: 1fr;
  }
}
