/* Theme follows the couple's invitation: cream panel, gold rules, wine names.
   Colours were sampled from the invitation PDF. */
:root {
  --cream: #f6efe3;
  --card: #fffaf1;
  --ink: #3a2a1a;
  --gold-text: #7d5f2e;
  --gold: #9c7a3c;
  --wine: #7a1e38;
  --muted: #8a7458;
  --line: #e6d8bf;
  --ok: #4e6a3d;
  --font-serif: 'EB Garamond', Garamond, Georgia, serif;
  --font-ar: 'Amiri', 'Traditional Arabic', serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-serif), var(--font-ar);
  font-size: 17px;
  line-height: 1.45;
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
.ar, [dir='rtl'] { font-family: var(--font-ar); }
.label { font-style: italic; font-size: 15px; color: var(--gold-text); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: 999px;
  border: 1px solid var(--wine); background: var(--wine); color: var(--card);
  font-weight: 600; font-size: 16px; text-decoration: none; white-space: nowrap;
}
.btn.ghost { background: transparent; color: var(--wine); border-color: var(--gold); }
.btn.small { min-height: 36px; padding: 0 14px; font-size: 15px; }
.btn:disabled { opacity: 0.5; cursor: default; }
.field {
  width: 100%; min-height: 48px; padding: 0 16px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--card); font-size: 17px; outline: none;
}
.field:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(156, 122, 60, 0.18); }

/* gold hairline with the invitation's sprig in the middle */
.rule { display: flex; align-items: center; gap: 12px; width: 100%; max-width: 300px; margin: 14px auto; }
.rule::before, .rule::after { content: ''; flex: 1; height: 1px; background: var(--gold); opacity: 0.8; }
.rule i { width: 18px; height: 18px; background: url(/invite/sprig.png) center / contain no-repeat; }

.couple { font-family: var(--font-ar); font-weight: 700; color: var(--wine); line-height: 1.3; direction: rtl; }
.couple .amp { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--gold); margin: 0 0.35em; }
.couple-en { font-style: italic; color: var(--gold-text); }
.bismillah { display: block; margin: 0 auto; height: auto; opacity: 0.9; }

.credit { display: flex; justify-content: center; padding: 28px 16px; }
.credit img { height: 72px; width: auto; max-width: 100%; object-fit: contain; }

/* ---------- login ---------- */
.login {
  min-height: 100dvh; display: grid; place-items: center; padding: 32px 16px;
  background: url(/invite/background.jpg) center / cover no-repeat fixed var(--cream);
}
.login-card {
  width: 100%; max-width: 400px; text-align: center;
  background: rgba(255, 250, 241, 0.95);
  border: 1.5px solid var(--gold); border-radius: 190px 190px 22px 22px;
  outline: 1px solid rgba(156, 122, 60, 0.5); outline-offset: 5px;
  padding: 64px 28px 8px;
  box-shadow: 0 30px 60px -30px rgba(58, 42, 26, 0.45);
}
.login-card .bismillah { width: 170px; }
.login-card .couple { font-size: 40px; margin-top: 18px; }
.login-card .couple-en { font-size: 19px; }
.login-card p { margin: 0 0 18px; color: var(--muted); }
.login-card form { display: grid; gap: 12px; }
.login-card .field { text-align: center; font-size: 20px; letter-spacing: 0.15em; }
.login-card .field.plain { letter-spacing: 0; font-size: 18px; }
.login-card .credit { padding: 18px 0 12px; }
.error { color: var(--wine); min-height: 1.4em; margin: 0; font-size: 15px; }
