/* Stardust — shared styles
   Palette pulled from the physical jar: night sky + emerald paper + candle glow */
:root {
  --night:      #0a0e14;
  --panel:      #111722;
  --panel-edge: #1c2534;
  --emerald:    #2ecc8f;
  --emerald-deep:#1a9d6e;
  --glow:       #f5e6c8;   /* warm candlelight, not clinical white */
  --ink:        #e8ecf2;
  --muted:      #7d8a9c;
  --danger:     #e08a7d;
  --radius:     14px;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--night);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--emerald); }

/* ---------- Auth / centered card layouts ---------- */
.centre-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.card {
  width: 100%;
  max-width: 380px;
  background: var(--panel);
  border: 1px solid var(--panel-edge);
  border-radius: var(--radius);
  padding: 32px 28px;
}

.card h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.9rem;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}

.card .sub {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 24px;
}

label {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  margin: 16px 0 6px;
}

input[type=text], input[type=password], input[type=date], input[type=search] {
  width: 100%;
  padding: 12px 14px;
  background: var(--night);
  border: 1px solid var(--panel-edge);
  border-radius: 10px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
}
input:focus {
  outline: 2px solid var(--emerald-deep);
  outline-offset: 1px;
  border-color: transparent;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 22px;
  padding: 13px 16px;
  background: var(--emerald-deep);
  color: #06110c;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.btn:hover { background: var(--emerald); }
.btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--panel-edge);
}
.btn.ghost:hover { border-color: var(--emerald-deep); background: rgba(46,204,143,0.06); }

.error {
  margin-top: 16px;
  padding: 10px 12px;
  background: rgba(224,138,125,0.1);
  border: 1px solid rgba(224,138,125,0.35);
  border-radius: 8px;
  color: var(--danger);
  font-size: 0.88rem;
}

.field-help { color: var(--muted); font-size: 0.78rem; margin-top: 6px; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
