@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=DM+Mono:wght@400;500&display=swap');

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

:root {
  --navy:    #0a1628;
  --navy2:   #0f2044;
  --gold:    #c9a84c;
  --gold2:   #a8893a;
  --bg:      #ffffff;
  --bg2:     #f5f6f8;
  --bg3:     #eef0f4;
  --text:    #0a1628;
  --muted:   #6b7a94;
  --border:  #dde1ea;
  --green:   #2e8f5f;
  --red:     #c0392b;
  --accent:  #0a1628;
  --accent2: #1a2e4a;
  --mono:    'DM Mono', monospace;
  --sans:    'Inter', sans-serif;
}

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

/* ── Nav ── */
.ags-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
}
.ags-logo {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--gold);
  text-decoration: none;
}
.ags-logo span { color: #fff; }

.nav-badge {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  background: rgba(201,168,76,0.15);
  border: 0.5px solid rgba(201,168,76,0.4);
  color: var(--gold);
  padding: 4px 10px;
  border-radius: 4px;
}

/* ── Shared field ── */
.field { margin-bottom: 1.25rem; }
.field label {
  display: block;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 8px;
}
.field input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  padding: 10px 14px;
  border-radius: 6px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(10,22,40,0.06);
}
.field input::placeholder { color: #b0b8c8; }
.field input.error { border-color: var(--red); }

/* ── Buttons ── */
.btn-primary {
  width: 100%;
  background: var(--navy);
  color: #fff;
  border: none;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  padding: 12px;
  border-radius: 6px;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: background .2s, transform .1s;
}
.btn-primary:hover  { background: var(--navy2); }
.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled {
  background: var(--bg2);
  color: var(--muted);
  cursor: not-allowed;
}

/* ── Error banner ── */
.error-banner {
  display: none;
  background: #fff5f5;
  border: 1px solid #fca5a5;
  border-radius: 6px;
  padding: 9px 12px;
  margin-bottom: 1rem;
  font-size: 13px;
  color: #b91c1c;
  line-height: 1.5;
}
.error-banner.visible { display: block; }

/* ── Divider ── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 1.25rem 0;
}