/* ── Reset ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
a { text-decoration: none; }

/* ── Tokens ───────────────────────────────────────────── */
:root {
  --purple:       #663399;
  --purple-light: #8B47B5;
  --purple-dark:  #4a0072;
  --white:        #FAFAFA;
  --input-bg:     #E8E8E8;
  --text-dark:    #212226;
  --text-mid:     #46494c;
  --placeholder:  #6e6e73;
}

/* ── Base ─────────────────────────────────────────────── */
body {
  font-family: 'Encode Sans', sans-serif;
  color: var(--white);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ── Hero ─────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  background: var(--purple-dark);
  display: flex;
  flex-direction: column;
}

/* ── Header — frosted glass ───────────────────────────── */
.header {
  padding: 0 2rem;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: rgba(74, 0, 114, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .2px;
  color: rgba(255,255,255,.9);
}

.logo span { color: #c9a0e8; }

/* ── Main layout ──────────────────────────────────────── */
.main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6rem;
  padding: 5rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
}

/* ── Hero text ────────────────────────────────────────── */
.hero-text { flex: 1; max-width: 400px; }

.hero-text h1 {
  font-size: clamp(3rem, 5.5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -1.5px;
  margin-bottom: 1.25rem;
}

.hero-text p {
  font-size: 1.75rem;
  font-weight: 500;
  color: rgba(255,255,255,.75);
  letter-spacing: -.2px;
  line-height: 1.3;
}

/* ── Card — Apple glass ───────────────────────────────── */
.card {
  width: 100%;
  max-width: 400px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(40px);
  -webkit-backdrop-filter: saturate(180%) blur(40px);
  border-radius: 20px;
  padding: 2.5rem;
  border: 1px solid rgba(255,255,255,.5);
  box-shadow:
    0 2px 4px rgba(0,0,0,.04),
    0 8px 16px rgba(74,0,114,.1),
    0 24px 48px rgba(0,0,0,.18),
    0 48px 80px rgba(0,0,0,.1);
  color: var(--text-dark);
}

.card h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--purple-dark);
  letter-spacing: -.3px;
  margin-bottom: .35rem;
}

.card-subtitle {
  font-size: .875rem;
  color: var(--text-mid);
  margin-bottom: 1.75rem;
  line-height: 1.5;
}

/* ── Fields ───────────────────────────────────────────── */
.field { margin-bottom: 1rem; }

.field label {
  display: block;
  font-size: .72rem;
  font-weight: 600;
  color: var(--text-mid);
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: .4rem;
}

.field input {
  width: 100%;
  padding: .78rem 1rem;
  background: rgba(120,120,128,.12);
  border: 1px solid rgba(120,120,128,.2);
  border-radius: 10px;
  font-family: 'Encode Sans', sans-serif;
  font-size: .95rem;
  color: var(--text-dark);
  outline: none;
  transition: border-color .2s, background .2s, box-shadow .2s;
}

.field input::placeholder { color: var(--placeholder); font-weight: 300; }

.field input:focus {
  background: #fff;
  border-color: var(--purple);
  box-shadow: 0 0 0 3.5px rgba(102,51,153,.15);
}

/* ── Button ───────────────────────────────────────────── */
button[type="submit"] {
  width: 100%;
  margin-top: .75rem;
  padding: .85rem;
  background: var(--purple);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-family: 'Encode Sans', sans-serif;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .1px;
  cursor: pointer;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 2px 8px rgba(102,51,153,.35);
}

button[type="submit"]:hover {
  background: var(--purple-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(74,0,114,.4);
}

button[type="submit"]:active { transform: scale(.98); }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 820px) {
  .main {
    flex-direction: column;
    gap: 3rem;
    padding: 3rem 1.5rem;
    align-items: stretch;
  }
  .hero-text { max-width: 100%; text-align: center; }
  .card { max-width: 100%; }
}

@media (max-width: 480px) {
  .card { padding: 2rem 1.5rem; border-radius: 16px; }
  .hero-text h1 { letter-spacing: -1px; }
}
