@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600&family=EB+Garamond:ital,wght@0,400;0,500;0,600;1,400&display=swap');

:root {
  --ink: #0a0908;
  --ink-2: #13110e;
  --ink-3: #1c1915;
  --gold: #c9a96e;
  --gold-bright: #e6cc95;
  --gold-dim: rgba(201, 169, 110, 0.35);
  --gold-faint: rgba(201, 169, 110, 0.12);
  --cream: #efe6d4;
  --muted: #cbbfa6;
  --good: #9cc98a;
  --bad: #e08a7a;
  --display: 'Cinzel', 'Trajan Pro', Georgia, serif;
  --serif: 'EB Garamond', 'Garamond', Georgia, serif;
  --radius: 14px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(201,169,110,0.08), transparent 70%),
    var(--ink);
  color: var(--cream);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }

.floral { mix-blend-mode: screen; pointer-events: none; user-select: none; }

/* ---------- type ---------- */
.eyebrow {
  font-family: var(--display);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
.title {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--gold-bright);
  line-height: 1.15;
  margin: 0;
}
.lede { color: var(--muted); margin: 0; }

/* ---------- controls ---------- */
.btn {
  appearance: none;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold-bright);
  font-family: var(--display);
  font-size: 0.86rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.85em 1.6em;
  border-radius: 999px;
  cursor: pointer;
}
.btn:hover:not(:disabled) { background: var(--gold); color: var(--ink); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn.solid { background: var(--gold); color: var(--ink); }
.btn.solid:hover:not(:disabled) { background: var(--gold-bright); }
.btn.ghost { border-color: var(--gold-dim); color: var(--gold); }
.btn.small { padding: .6em 1.1em; font-size: .76rem; }
.linkish {
  background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--gold); text-decoration: underline; text-underline-offset: 3px;
}

.field {
  width: 100%;
  background: rgba(0,0,0,.4);
  border: 1px solid var(--gold-dim);
  border-radius: 999px;
  padding: .8em 1.2em;
  font-size: 1.1rem;
  text-align: center;
  outline: none;
}
.field:focus { border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-faint); }
.field::placeholder { color: rgba(203,191,166,.7); }

.error { color: var(--bad); min-height: 1.4em; margin: 0; }

.mask-icon { width: 92px; height: auto; color: var(--gold); }

/* ---------- centered gate / intro ---------- */
.gate {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 48px 20px;
  position: relative;
  overflow: hidden;
}
/* Sized so each floral fits in the space beside the 440px card. */
.gate .floral.left  { position: absolute; left: -40px; top: 50%; transform: translateY(-50%); height: min(90vh, 760px, calc(100vw - 400px)); width: auto; opacity: .85; }
.gate .floral.right { position: absolute; right: -40px; top: 50%; transform: translateY(-50%) scaleX(-1); height: min(90vh, 760px, calc(100vw - 400px)); width: auto; opacity: .85; }
.gate-card {
  position: relative;
  max-width: 440px;
  width: 100%;
  text-align: center;
  display: grid;
  gap: 18px;
  justify-items: center;
}
.gate-card .title { font-size: clamp(1.7rem, 5vw, 2.4rem); }
.gate-card form { display: grid; gap: 14px; width: 100%; margin-top: 8px; }
/* Phones: no room beside the text, so the two florals turn sideways and meet
   above the title as a garland. (Element is 0.52 × its height before rotating.) */
@media (max-width: 680px) {
  .gate { padding-top: 120px; place-items: start center; }
  .gate .floral.left, .gate .floral.right {
    --h: 190px;
    height: var(--h); top: calc(var(--h) * -0.24 + 14px);
    opacity: .9;
  }
  .gate .floral.left  { left: calc(50% - var(--h) * 0.76 + 22px); right: auto; transform: rotate(-90deg); }
  .gate .floral.right { left: calc(50% + var(--h) * 0.24 - 22px); right: auto; transform: scaleX(-1) rotate(-90deg); }
}

.divider { width: 180px; opacity: .9; margin: 2px auto; }

/* ---------- modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(5,4,3,.82);
  backdrop-filter: blur(6px);
  display: grid; place-items: center;
  padding: 20px;
  overflow-y: auto;
}
.modal {
  position: relative;
  width: min(520px, 100%);
  background: linear-gradient(180deg, var(--ink-3), var(--ink-2));
  border: 1px solid var(--gold-dim);
  border-radius: 22px;
  padding: 40px 32px 32px;
  text-align: center;
  display: grid; gap: 16px; justify-items: center;
  box-shadow: 0 30px 80px rgba(0,0,0,.6), inset 0 0 0 6px rgba(10,9,8,.6), inset 0 0 0 7px var(--gold-faint);
}
.modal .title { font-size: 1.7rem; }
.modal-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }

/* Round cameo of the two cats on the login page */
.cameo {
  width: 148px; height: 148px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px double var(--gold);
  box-shadow: 0 0 0 5px var(--ink), 0 0 0 6px var(--gold-dim);
  margin: 6px 0 2px;
}

.dateline { margin: 0; line-height: 1.9; }
