/* =============================================================================
   styles.css — VeraxMail static site
   VERSION 1.1.0 — 2026-05-10
   Added: .hp-field (honeypot hiding)
   ============================================================================= */

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

:root {
  --bg: #0a0c10;
  --surface: #0f1218;
  --border: rgba(255,255,255,0.07);
  --border-hover: rgba(255,255,255,0.14);
  --text: #e8e6e0;
  --muted: #5a5c63;
  --accent: #c8c4b8;
  --silver: #b8bcc4;
}

html { font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Syne', sans-serif;
  font-weight: 300;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% -10%, rgba(180,185,200,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 80% 80%, rgba(100,110,130,0.04) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

/* ── Logo area ────────────────────────────────────────────────────────────── */
.logo-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  opacity: 0;
  animation: fadeUp 0.9s ease forwards;
}

.shield-mark {
  width: 52px;
  height: 52px;
  position: relative;
}

.tagline {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.wordmark {
  font-family: 'Syne', sans-serif;
  font-size: 1.75rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--silver);
}

/* ── Form area ────────────────────────────────────────────────────────────── */
.form-area {
  width: 100%;
  opacity: 0;
  animation: fadeUp 0.9s ease 0.25s forwards;
}

.divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin-bottom: 2rem;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* ── Honeypot — must be invisible to real users, never display:none ───────── */
/* display:none is detectable by some bots; use off-screen positioning instead */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  tab-index: -1;
}

/* ── Fields ───────────────────────────────────────────────────────────────── */
.field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

label {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
}

input[type="email"],
textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: 'Syne', sans-serif;
  font-size: 0.875rem;
  font-weight: 300;
  padding: 0.75rem 1rem;
  width: 100%;
  outline: none;
  transition: border-color 0.2s ease;
  border-radius: 2px;
  resize: none;
  line-height: 1.6;
}

input[type="email"]:focus,
textarea:focus {
  border-color: var(--border-hover);
}

input[type="email"]::placeholder,
textarea::placeholder {
  color: var(--muted);
  opacity: 0.6;
}

textarea { height: 120px; }

/* ── Submit button ────────────────────────────────────────────────────────── */
.submit-btn {
  background: transparent;
  border: 1px solid var(--border-hover);
  color: var(--accent);
  font-family: 'Syne', sans-serif;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  border-radius: 2px;
  width: 100%;
  margin-top: 0.5rem;
}

.submit-btn:hover {
  border-color: rgba(255,255,255,0.25);
  color: var(--text);
  background: rgba(255,255,255,0.03);
}

.submit-btn:active  { transform: scale(0.99); }
.submit-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

/* ── Notice ───────────────────────────────────────────────────────────────── */
.notice {
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  line-height: 1.7;
  text-align: center;
  opacity: 0;
  animation: fadeUp 0.9s ease 0.45s forwards;
}

/* ── Success state ────────────────────────────────────────────────────────── */
.success-state {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
  padding: 2rem 0;
}

.success-state.visible { display: flex; }

.success-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--silver);
  letter-spacing: 0.06em;
}

.success-body {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  line-height: 1.8;
  max-width: 320px;
}

/* ── Error messages ───────────────────────────────────────────────────────── */
.error-msg {
  font-size: 0.68rem;
  color: #7a3030;
  letter-spacing: 0.04em;
  display: none;
}
.error-msg.visible { display: block; }

/* ── Animations ───────────────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  body { padding: 2rem 1rem; }
  .container { gap: 2rem; }
}
