/* Auth screens — login / sign-up shared styling */

body.auth-page {
  background: var(--ink);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  position: relative;
  overflow: hidden;
}
body.auth-page::before,
body.auth-page::after {
  content: "";
  position: absolute;
  width: 70vw; height: 70vw;
  max-width: 900px; max-height: 900px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
body.auth-page::before {
  top: -30%; left: -15%;
  background: radial-gradient(circle, rgba(201,169,97,0.16), transparent 60%);
}
body.auth-page::after {
  bottom: -30%; right: -15%;
  background: radial-gradient(circle, rgba(216,189,126,0.08), transparent 60%);
}

.auth-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
}

.auth-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--serif);
  font-size: 1.7rem;
  color: var(--cream);
  margin-bottom: 2rem;
  text-decoration: none;
}
.auth-brand .brand-mark {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-deep));
  color: var(--ink);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.1rem;
}
.auth-brand em {
  font-style: italic;
  color: var(--gold);
  font-weight: 500;
}

.auth-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 2.8rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
}
.auth-card h1 {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 300;
  color: var(--cream);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}
.auth-card h1 em { color: var(--gold-light); font-style: italic; }
.auth-card .lede {
  color: var(--grey-soft);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.auth-card .field label { color: var(--grey-soft); }
.auth-card .field input {
  background: rgba(0,0,0,0.3);
  color: var(--cream);
  border-color: var(--graphite);
}
.auth-card .field input::placeholder { color: var(--grey); }
.auth-card .field input:focus {
  background: rgba(0,0,0,0.5);
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201,169,97,0.15);
}

.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.84rem;
  margin: 1.4rem 0;
  color: var(--grey-soft);
}
.auth-row a { color: var(--gold-light); }
.auth-row a:hover { color: var(--gold); }
.auth-row label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}
.auth-row input[type="checkbox"] { accent-color: var(--gold); }

.auth-submit {
  width: 100%;
  justify-content: center;
}

.auth-error {
  display: none;
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  background: rgba(220, 90, 90, 0.12);
  border: 1px solid rgba(220, 90, 90, 0.35);
  border-radius: var(--radius);
  color: #f3b2b2;
  font-size: 0.9rem;
}
.auth-error.visible { display: block; }

.auth-footer {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.9rem;
  color: var(--grey-soft);
}
.auth-footer a { color: var(--gold-light); font-weight: 500; }
.auth-footer a:hover { color: var(--gold); }

.demo-hint {
  margin-top: 2rem;
  padding: 1.2rem 1.4rem;
  border: 1px dashed rgba(201,169,97,0.45);
  border-radius: var(--radius);
  background: rgba(201,169,97,0.06);
}
.demo-hint .lbl {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}
.demo-hint p {
  color: var(--grey-soft);
  font-size: 0.88rem;
  margin: 0.3rem 0;
  font-family: var(--mono);
}
.demo-hint p strong { color: var(--cream); font-weight: 500; }
.demo-hint button {
  margin-top: 0.8rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  background: transparent;
  border: 1px solid var(--gold-deep);
  padding: 0.5rem 1rem;
  border-radius: 100px;
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
}
.demo-hint button:hover {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}

.back-home {
  position: absolute;
  top: 2rem;
  left: 2rem;
  z-index: 2;
  font-size: 0.85rem;
  color: var(--grey-soft);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.back-home:hover { color: var(--gold-light); }
.back-home::before { content: "←"; }
