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

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #0b0b11;
  --surface:  #13131d;
  --border:   rgba(255,255,255,0.07);
  --gold:     #c9a870;
  --gold-dim: rgba(201,168,112,0.45);
  --text:     #ece6d8;
  --text-2:   rgba(236,230,216,0.5);
  --text-3:   rgba(236,230,216,0.2);
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--text);
}

.serif { font-family: 'Cormorant Garamond', Georgia, serif; }

/* ── Background grid pattern ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* ── Soft glow orb ── */
body::after {
  content: '';
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(201,168,112,0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ── Card ── */
.card {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 48px 44px;
  width: 100%;
  max-width: 420px;
  margin: 16px;
}

.card-top {
  text-align: center;
  margin-bottom: 40px;
}

.card-monogram {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--gold);
  letter-spacing: 0.15em;
  display: block;
  margin-bottom: 4px;
}

.card-date {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  color: var(--text-3);
  text-transform: uppercase;
}

.divider-h {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-dim), transparent);
  margin: 28px 0;
}

/* ── Field ── */
.field-wrap { margin-bottom: 20px; }

.field-label {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 8px;
}

.field {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 11px 14px;
  font-size: 0.875rem;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  transition: border-color 0.2s, background 0.2s;
  outline: none;
}
.field::placeholder { color: var(--text-3); }
.field:focus {
  border-color: var(--gold-dim);
  background: rgba(201,168,112,0.04);
}

/* ── Button ── */
.btn {
  width: 100%;
  background: var(--gold);
  color: #0b0b11;
  border: none;
  border-radius: 2px;
  padding: 12px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  margin-top: 8px;
}
.btn:hover   { opacity: 0.88; }
.btn:active  { transform: scale(0.99); }

/* ── Error ── */
.err {
  display: none;
  font-size: 0.75rem;
  color: #e07070;
  text-align: center;
  margin-bottom: 14px;
  padding: 8px 12px;
  border: 1px solid rgba(224,112,112,0.2);
  border-radius: 2px;
  background: rgba(224,112,112,0.05);
}
.err.show { display: block; }

/* ── Shake ── */
@keyframes shake {
  0%,100% { transform: translateX(0); }
  20%,60% { transform: translateX(-5px); }
  40%,80% { transform: translateX(5px); }
}
.shake { animation: shake 0.35s ease; }

/* ── Footer note ── */
.card-note {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--text-3);
  text-align: center;
  margin-top: 28px;
}
