:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #f2f1ff;
  background: #090a12;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(ellipse at 50% 24%, rgba(116, 95, 232, .18), transparent 42%),
    #090a12;
}

.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: 1.5rem;
  color: #f6f4ff;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -.04em;
  text-decoration: none;
}

.brand img { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; }
.brand-accent { color: #a99bff; }

.auth-card {
  width: min(100%, 430px);
  padding: clamp(1.5rem, 6vw, 2.5rem);
  border: 1px solid rgba(202, 195, 255, .13);
  border-radius: 22px;
  background: rgba(19, 20, 32, .92);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .38);
}

.auth-eyebrow { color: #a99bff; font-size: .68rem; font-weight: 700; letter-spacing: .14em; }
h1 { margin: .75rem 0 .45rem; font-size: clamp(1.55rem, 5vw, 1.9rem); letter-spacing: -.045em; }
.auth-subtitle { margin: 0 0 1.75rem; color: #a5a4b8; font-size: .88rem; line-height: 1.6; }
.field { margin-bottom: 1rem; }
.field[hidden] { display: none; }
.field label { display: block; margin-bottom: .45rem; color: #c4c2d3; font-size: .78rem; font-weight: 600; }
.field input,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: .75rem .85rem;
  border: 1px solid rgba(202, 195, 255, .16);
  border-radius: 10px;
  outline: none;
  background: #10111b;
  color: #f2f1ff;
  font: inherit;
  font-size: .88rem;
}
.field textarea { min-height: 72px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: #9a88ff; box-shadow: 0 0 0 3px rgba(154, 136, 255, .13); }
.field input::placeholder, .field textarea::placeholder { color: #747386; }

.auth-error { min-height: 1.2rem; margin: -.15rem 0 .7rem; color: #ff9aab; font-size: .78rem; line-height: 1.5; }
.submit-button {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #8977f8, #6855d8);
  color: white;
  font: inherit;
  font-size: .88rem;
  font-weight: 700;
  cursor: pointer;
}
.submit-button:hover { filter: brightness(1.08); }
.submit-button:disabled { cursor: wait; opacity: .7; }

.divider { display: flex; align-items: center; gap: .8rem; margin: 1.35rem 0; color: #858397; font-size: .72rem; }
.divider::before, .divider::after { content: ""; height: 1px; flex: 1; background: rgba(202, 195, 255, .13); }
.google-button { display: flex; justify-content: center; min-height: 42px; }
.auth-switch { margin: 1.35rem 0 0; color: #a5a4b8; text-align: center; font-size: .8rem; }
.auth-switch a, footer a { color: #b6aaff; text-decoration: none; }
.auth-switch a:hover, footer a:hover { text-decoration: underline; }
footer { display: flex; gap: .65rem; margin-top: 1.5rem; color: #747386; font-size: .72rem; }

@media (max-width: 480px) {
  .auth-page { justify-content: flex-start; padding-top: max(2rem, 8vh); }
  .auth-card { border-radius: 18px; }
}
