/* Base reset */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, 'Apple Color Emoji', 'Segoe UI Emoji';
  color: #0f172a;
  background: radial-gradient(1200px 800px at 10% 10%, #e6f0ff 0%, rgba(230,240,255,0) 50%),
              radial-gradient(900px 700px at 90% 20%, #ffe9f0 0%, rgba(255,233,240,0) 50%),
              linear-gradient(180deg, #f6f7fb 0%, #f0f4ff 100%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.page {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr;
}

.page::before {
  content: "";
  position: fixed;
  inset: -20% -20% auto auto;
  width: 60vmax;
  height: 60vmax;
  background: radial-gradient(closest-side, rgba(59,130,246,0.14), rgba(59,130,246,0) 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

.brand {
  padding: 24px 24px 0 24px;
}

.brand .logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 22px;
  color: #111827;
}

.card {
  display: grid;
  place-items: start center;
  padding: 24px;
  position: relative;
  z-index: 1;
}

.card-inner {
  width: 100%;
  max-width: 640px;
  background: rgba(255,255,255,0.65);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(17,24,39,0.06), 0 30px 80px rgba(17,24,39,0.10);
  padding: 36px 32px 24px 32px;
  border: 1px solid rgba(238,240,245,0.8);
  transition: transform .15s ease, box-shadow .2s ease;
}

.card-inner:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(17,24,39,0.08), 0 40px 90px rgba(17,24,39,0.12);
}

.eyebrow {
  margin: 0 0 8px 0;
  color: #6b7280;
  font-size: 16px;
}

.title {
  margin: 0 0 24px 0;
  font-size: 36px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #0f172a 0%, #2563eb 60%, #7c3aed 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.form { display: grid; gap: 16px; }

.field { display: grid; gap: 8px; }
.label { font-weight: 500; font-size: 14px; color: #374151; }

.input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #fff;
  font-size: 16px;
  color: #111827;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.input::placeholder { color: #9ca3af; }
.input:hover { border-color: #d1d5db; }
.input:focus { border-color: #2563eb; box-shadow: 0 0 0 4px rgba(37,99,235,0.12); }
.input.error { border-color: #ef4444; box-shadow: 0 0 0 4px rgba(239,68,68,0.12); }
.error-text { color: #b91c1c; font-size: 13px; margin-top: 6px; }

.row { display: flex; align-items: center; gap: 12px; }
.between { justify-content: space-between; }

.checkbox { display: inline-flex; align-items: center; gap: 10px; color: #374151; font-size: 14px; }
.checkbox input { width: 16px; height: 16px; }

.link { color: #2563eb; text-decoration: none; font-size: 14px; }
.link:hover { text-decoration: underline; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: #e5e7eb;
  color: #111827;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: background .15s, box-shadow .15s, transform .02s;
}

.btn:active { transform: translateY(1px); }

.btn.primary { 
  background: linear-gradient(90deg, #2563eb 0%, #7c3aed 100%);
  color: #fff; 
  border-color: transparent; 
  box-shadow: 0 8px 24px rgba(37,99,235,0.35);
}
.btn.primary:hover { 
  background: linear-gradient(90deg, #1d4ed8 0%, #6d28d9 100%);
  box-shadow: 0 10px 28px rgba(37,99,235,0.45);
}

.btn.google { background: #fff; color: #111827; border-color: #e5e7eb; }
.btn.google:hover { background: #f9fafb; }
.gicon { width: 20px; height: 20px; }

.footnote { text-align: center; color: #6b7280; margin: 6px 0 0 0; font-size: 14px; }

/* Alerts */
.alert { border-radius: 10px; padding: 12px 14px; font-size: 14px; margin: 0 0 12px 0; }
.alert.error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

/* Responsive */
@media (max-width: 768px) {
  .brand { padding-left: 16px; padding-right: 16px; }
  .card { padding: 16px; }
  .card-inner { padding: 28px 20px 20px 20px; }
  .title { font-size: 28px; }
}

@media (prefers-color-scheme: dark) {
  body { 
    background: radial-gradient(1200px 800px at 10% 10%, rgba(30,64,175,0.25) 0%, rgba(30,64,175,0) 50%),
                radial-gradient(900px 700px at 90% 20%, rgba(126,34,206,0.20) 0%, rgba(126,34,206,0) 50%),
                linear-gradient(180deg, #0b1020 0%, #0a0f1f 100%);
    color: #e5e7eb; 
  }
  .brand .logo { color: #e5e7eb; }
  .card-inner { background: rgba(15,23,42,0.6); border-color: #182341; box-shadow: 0 18px 40px rgba(0,0,0,0.45); }
  .label { color: #cbd5e1; }
  .input { background: #0b1224; border-color: #1f2a44; color: #e5e7eb; }
  .input::placeholder { color: #77819a; }
  .link { color: #60a5fa; }
  .btn.google { background: #0b1224; border-color: #1f2a44; color: #e5e7eb; }
  .footnote { color: #9aa4bf; }
}


