/* ===========================================================================
   The first screen anyone sees, so it carries the site's identity properly.
   Same tokens and faces as inbox.css, taken from la-sociedad.club.
   =========================================================================== */

@font-face {
  font-family: 'Bodoni Moda';
  src: url('/fonts/bodoni-moda-latin.woff2') format('woff2');
  font-weight: 400 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Jost';
  src: url('/fonts/jost-latin.woff2') format('woff2');
  font-weight: 300 600; font-style: normal; font-display: swap;
}

:root {
  --noir:#0A0708; --smoke:#150E11; --wine:#31101B; --oxblood:#6E1423;
  --gold:#C9A96A; --ivory:#F1E9DE;
  --gold-line:rgba(201,169,106,.24);
  --ivory-dim:rgba(241,233,222,.58);
  --ivory-faint:rgba(241,233,222,.30);
  --line-soft:rgba(241,233,222,.09);
  --red:#A33C36;
  --display:'Bodoni Moda', Georgia, serif;
  --body:'Jost', -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
body {
  margin:0; min-height:100dvh; display:flex; align-items:center; justify-content:center;
  padding:24px 16px;
  font-family:var(--body); background:
    radial-gradient(circle at top, rgba(201,169,106,.18), transparent 22%),
    radial-gradient(circle at bottom right, rgba(110,20,35,.24), transparent 26%),
    linear-gradient(180deg, #090708 0%, #120C0F 40%, #090708 100%);
  color:var(--ivory);
  -webkit-text-size-adjust:100%;
}
.card {
  position:relative; overflow:hidden; background:linear-gradient(180deg, rgba(27,18,21,.98), rgba(15,11,13,.98));
  border:1px solid var(--gold-line); border-radius:18px;
  padding:30px 28px 24px; width:min(380px, calc(100vw - 32px));
  box-shadow:0 30px 80px rgba(0,0,0,.58), inset 0 1px 0 rgba(255,255,255,.04), 0 0 0 1px rgba(201,169,106,.06);
}
.card::before {
  content:""; position:absolute; inset:0; pointer-events:none;
  background:linear-gradient(135deg, rgba(201,169,106,.10), transparent 25%, transparent 72%, rgba(201,169,106,.06));
}
.card > * { position:relative; z-index:1; }
h1 {
  margin:0; font-family:var(--display); font-size:24px; font-weight:600;
  letter-spacing:.06em; color:var(--ivory);
}
.logo {
  display:block; width:min(230px, 62%); height:auto; margin:0 auto 10px;
  /* The artwork's ground is pure black and the card is a warm near-black, so
     it read as a mismatched square floating on the panel. Framed instead —
     which is what the mark is anyway, a plaque. */
  background:linear-gradient(180deg, rgba(0,0,0,.96), rgba(20,12,14,.98));
  border:1px solid var(--gold-line); border-radius:10px;
  box-shadow:0 14px 28px rgba(10,7,8,.28), inset 0 1px 0 rgba(255,255,255,.08);
}
.sub {
  margin:2px 0 24px; font-size:11px; color:var(--ivory-faint);
  text-transform:uppercase; letter-spacing:.16em; text-align:center;
}
label {
  display:block; font-size:11px; font-weight:600; text-transform:uppercase;
  letter-spacing:.08em; color:var(--ivory-faint); margin-bottom:6px;
}
input {
  width:100%; padding:11px 12px; margin-bottom:18px; font:inherit; font-family:var(--body);
  border:1px solid var(--line-soft); border-radius:8px;
  background:linear-gradient(180deg, rgba(18,12,14,.96), rgba(11,8,9,.98)); color:var(--ivory);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04), 0 10px 18px rgba(10,7,8,.10);
  /* 16px stops iOS zooming the page in when the field takes focus. */
  font-size:16px;
}
input:focus { outline:none; border-color:var(--gold); box-shadow:0 0 0 1px rgba(201,169,106,.14), inset 0 1px 0 rgba(255,255,255,.04); }
button {
  width:100%; border:0; border-radius:8px; padding:13px; font:inherit; font-family:var(--body);
  font-weight:600; letter-spacing:.06em; text-transform:uppercase; font-size:13px;
  background:linear-gradient(180deg, rgba(110,20,35,.96), rgba(78,10,23,.96)); color:var(--ivory); cursor:pointer; min-height:48px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08), 0 12px 24px rgba(110,20,35,.22), 0 0 0 1px rgba(201,169,106,.08);
}
button:hover { background:linear-gradient(180deg, rgba(127,28,40,.98), rgba(93,12,25,.98)); }
button:focus-visible { outline:2px solid var(--gold); outline-offset:2px; }
.err {
  background:linear-gradient(180deg, rgba(163,60,54,.18), rgba(22,12,13,.96)); color:#E8A9A4; border:1px solid var(--red);
  border-radius:8px; padding:10px 12px; font-size:13px; margin:0 0 18px; line-height:1.45;
}

/* --- Offline card --------------------------------------------------------- */
.note {
  border:1px solid var(--gold-line); border-radius:8px; padding:12px;
  font-size:13px; line-height:1.55; color:var(--ivory-dim); margin:0 0 20px;
  background:linear-gradient(180deg, rgba(30,22,24,.62), rgba(14,10,11,.92));
}
/* A link, not a button: reloading needs no script, and this page has to work
   when the CSP is the only thing still standing. */
.btn {
  display:block; text-align:center; text-decoration:none;
  border-radius:8px; padding:13px; font-weight:600; letter-spacing:.06em;
  text-transform:uppercase; font-size:13px; min-height:48px; line-height:22px;
  background:linear-gradient(180deg, rgba(110,20,35,.96), rgba(78,10,23,.96)); color:var(--ivory);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08), 0 12px 24px rgba(110,20,35,.18);
}
.btn:hover { background:linear-gradient(180deg, rgba(127,28,40,.98), rgba(93,12,25,.98)); }
.btn:focus-visible { outline:2px solid var(--gold); outline-offset:2px; }
