@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,600&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@500&display=swap');

:root {
  --ink: #16232B;
  --paper: #F6F3EC;
  --slate: #0E1B22;
  --gold: #C79A45;
  --error: #B4483A;
  --line: rgba(22, 35, 43, 0.14);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--slate);
  background-image:
    radial-gradient(circle at 20% 20%, rgba(199,154,69,0.08), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(199,154,69,0.06), transparent 40%);
  font-family: 'Inter', sans-serif;
  color: var(--ink);
  padding: 24px;
}

.pass {
  position: relative;
  width: 100%;
  max-width: 380px;
  background: var(--paper);
  border-radius: 14px;
  padding: 40px 36px 32px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.35);
  overflow: hidden;
}

/* perforated "ticket" edge along the top */
.pass::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background-image: radial-gradient(circle, var(--slate) 2.5px, transparent 2.6px);
  background-size: 16px 6px;
  background-position: 8px 0;
}

.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--gold);
  text-transform: uppercase;
  margin: 18px 0 6px;
  display: flex;
  justify-content: space-between;
}

h1 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 30px;
  line-height: 1.15;
  margin: 0 0 26px;
}

.field { margin-bottom: 18px; }

.field label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(22,35,43,0.55);
  margin-bottom: 7px;
}

.field input {
  width: 100%;
  padding: 12px 13px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  background: #fff;
  color: var(--ink);
  transition: border-color .15s ease;
}

.field input:focus {
  outline: none;
  border-color: var(--gold);
}

.field input:invalid:not(:placeholder-shown) {
  border-color: var(--error);
}

button.submit {
  width: 100%;
  padding: 13px;
  margin-top: 8px;
  background: var(--slate);
  color: var(--paper);
  border: none;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform .15s ease, background .15s ease;
}

button.submit:hover { background: #1c2e38; }
button.submit:active { transform: scale(0.98); }
button.submit:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

button.submit svg { transition: transform .15s ease; }
button.submit:hover svg { transform: translateX(3px); }

.msg {
  font-size: 13.5px;
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 7px;
  display: none;
}
.msg.error { display: block; background: rgba(180,72,58,0.1); color: var(--error); }
.msg.ok { display: block; background: rgba(199,154,69,0.14); color: #8a6420; }

.switch {
  text-align: center;
  margin-top: 22px;
  font-size: 13.5px;
  color: rgba(22,35,43,0.65);
}
.switch a { color: var(--ink); font-weight: 600; text-decoration: none; border-bottom: 1.5px solid var(--gold); }

.stub {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1.5px dashed var(--line);
  display: flex;
  justify-content: space-between;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: rgba(22,35,43,0.4);
  text-transform: uppercase;
}

/* Dashboard */
.dash {
  width: 100%;
  max-width: 460px;
  background: var(--paper);
  border-radius: 14px;
  padding: 40px 36px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.35);
}
.dash h1 { margin-bottom: 8px; }
.dash p { color: rgba(22,35,43,0.65); line-height: 1.6; }
.dash button.submit { margin-top: 24px; background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.dash button.submit:hover { background: rgba(22,35,43,0.05); }

@media (prefers-reduced-motion: reduce) {
  button.submit, button.submit svg { transition: none; }
}
