/* ==========================================================================
   VeriVow — Login
   Visual idea: this is a verification product before it's a dating product.
   The hero borrows from passports and wax seals (ring seal mark, fine
   guilloché hairlines) instead of the usual heart/gradient dating-app kit.
   ========================================================================== */

:root {
  --ink: #0f2247;
  --ink-deep: #0a1a38;
  --ink-soft: #1a3566;
  --paper: #faf7f1;
  --paper-raised: #ffffff;
  --gold: #c9a227;
  --gold-bright: #e9ce8a;
  --wine: #7a2e2e;
  --line: #dfd7c6;
  --text-on-ink: #f3efe6;
  --text-on-ink-muted: #b7b2a4;
  --text-body: #23262d;
  --text-muted: #767162;
  --danger: #a23b3b;
  --radius-s: 3px;
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

button { font-family: inherit; }

/* ------------------------------ shell ------------------------------ */

.vv3-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
}

/* ------------------------------ hero ------------------------------ */

.vv3-hero {
  position: relative;
  background: radial-gradient(120% 100% at 30% 20%, var(--ink-soft) 0%, var(--ink) 45%, var(--ink-deep) 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 3rem;
}

.vv3-hero-center {
  position: relative;
  z-index: 1;
  max-width: 460px;
  text-align: center;
}

/* seal mark */
.vv3-seal {
  width: 74px;
  height: 74px;
  margin: 0 auto 1.75rem;
}

.vv3-seal circle,
.vv3-seal path {
  vector-effect: non-scaling-stroke;
}

.vv3-seal-ring {
  stroke: var(--gold-bright);
  stroke-width: 1.4;
  fill: none;
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
  animation: vv3-draw 1.1s ease-out 0.15s forwards;
}

.vv3-seal-tick {
  stroke: var(--gold-bright);
  stroke-width: 1.4;
  fill: none;
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: vv3-draw 0.6s ease-out 1s forwards;
}

.vv3-seal-check {
  stroke: var(--gold-bright);
  stroke-width: 1.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 20;
  stroke-dashoffset: 20;
  animation: vv3-draw 0.4s ease-out 1.15s forwards;
}

@keyframes vv3-draw {
  to { stroke-dashoffset: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .vv3-seal-ring, .vv3-seal-tick, .vv3-seal-check {
    animation: none;
    stroke-dashoffset: 0;
  }
}

.vv3-hero-logo-img { display: none; } /* superseded by SVG seal mark below */

.vv3-hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 2.6rem;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--text-on-ink);
  margin: 0 0 1.1rem;
}

.vv3-hero h1 .accent {
  color: var(--gold-bright);
  font-style: italic;
}

.vv3-hero p {
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--text-on-ink-muted);
  margin: 0 auto;
  max-width: 34ch;
}

.vv3-badge-row {
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.vv3-badge {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0 1.05rem;
  font-size: 0.82rem;
  color: var(--text-on-ink-muted);
  white-space: nowrap;
}

.vv3-badge:not(:last-child) {
  border-right: 1px solid rgba(233, 206, 138, 0.22);
}

.vv3-badge:first-child { padding-left: 0; }
.vv3-badge:last-child { padding-right: 0; }

.vv3-badge svg { flex-shrink: 0; }

/* ------------------------------ form panel ------------------------------ */

.vv3-form-panel {
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2.5rem;
}

.vv3-form-inner {
  width: 100%;
  max-width: 380px;
}

.vv3-mobile-brand {
  display: none;
}

.vv3-tabs {
  display: flex;
  gap: 1.75rem;
  margin-bottom: 2.75rem;
  border-bottom: 1px solid var(--line);
}

.vv3-tab {
  background: none;
  border: none;
  padding: 0 0 0.85rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  margin-bottom: -1px;
}

.vv3-tab.is-active {
  color: var(--ink);
  font-weight: 600;
}

.vv3-tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--gold);
}

.vv3-form-body h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.7rem;
  margin: 0 0 0.4rem;
  color: var(--ink);
}

.vv3-sub {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0 0 2rem;
}

.vv3-alert {
  background: #f7e9e4;
  border-left: 3px solid var(--danger);
  color: #7a2b2b;
  font-size: 0.85rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-s);
  margin-bottom: 1.5rem;
}

/* underline-style fields, closer to a ledger line than a boxed pill —
   ties visually to the certificate/document idea from the hero */
.vv3-field {
  margin-bottom: 1.6rem;
}

.vv3-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.65rem;
  position: relative;
  transition: border-color 0.15s ease;
}

.vv3-input-wrap svg {
  flex-shrink: 0;
  stroke: var(--text-muted);
  transition: stroke 0.15s ease;
}

.vv3-input-wrap:focus-within {
  border-color: var(--gold);
}

.vv3-input-wrap:focus-within svg {
  stroke: var(--gold);
}

.vv3-input-wrap input {
  flex: 1;
  border: none;
  background: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-body);
  padding: 0.15rem 0;
}

.vv3-input-wrap input::placeholder {
  color: #a29c8c;
}

.vv3-toggle-pw {
  border: none;
  background: none;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  padding: 0;
}

.vv3-toggle-pw:hover { color: var(--ink); }

.vv3-field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0.4rem 0 2.1rem;
  font-size: 0.85rem;
}

.vv3-remember {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  cursor: pointer;
}

.vv3-remember input[type="checkbox"] {
  appearance: none;
  width: 16px;
  height: 16px;
  border: 1px solid var(--line);
  border-radius: 3px;
  display: grid;
  place-content: center;
  cursor: pointer;
  margin: 0;
}

.vv3-remember input[type="checkbox"]::before {
  content: "";
  width: 9px;
  height: 9px;
  transform: scale(0);
  transition: transform 0.1s ease;
  box-shadow: inset 1em 1em var(--gold);
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

.vv3-remember input[type="checkbox"]:checked::before {
  transform: scale(1);
}

.vv3-forgot {
  color: var(--wine);
}

.vv3-forgot:hover { text-decoration: underline; }

.vv3-btn-submit {
  width: 100%;
  background: var(--ink);
  color: var(--gold-bright);
  border: none;
  border-radius: var(--radius-s);
  padding: 0.95rem 1.2rem;
  font-size: 0.96rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  transition: background 0.15s ease;
}

.vv3-btn-submit svg { stroke: currentColor; }

.vv3-btn-submit:hover { background: var(--ink-soft); }

.vv3-btn-submit:focus-visible,
.vv3-tab:focus-visible,
.vv3-toggle-pw:focus-visible,
a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.vv3-switch-line {
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 1.75rem 0 0;
}

.vv3-switch-line a {
  color: var(--wine);
  font-weight: 600;
}

.vv3-switch-line a:hover { text-decoration: underline; }

/* ------------------------------ responsive ------------------------------ */

@media (max-width: 900px) {
  .vv3-shell {
    grid-template-columns: 1fr;
  }

  .vv3-hero {
    display: none;
  }

  .vv3-mobile-brand {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 2rem;
  }

  .vv3-mobile-brand span {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--ink);
  }

  .vv3-mobile-brand em {
    font-style: italic;
    color: var(--gold);
  }

  .vv3-form-panel {
    min-height: 100vh;
    padding: 2.5rem 1.75rem 3rem;
  }
}