
:root {
  color-scheme: light;
  --ink: #17283a;
  --muted: #526477;
  --teal: #540870;
  --border: #d8e4eb;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #eeebff;
}

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: clamp(12px, 4vw, 48px);
  background: radial-gradient(ellipse at 10% 0%, #eeebff, transparent 60%), #eeebff;
}

a { color: var(--teal); text-underline-offset: .18em; font-weight: 650; }
:focus-visible { outline: 3px solid #087b81; outline-offset: 3px; }

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  width: min(100%, 970px);
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 20px 60px rgb(23 40 58 / 10%);
}

.auth-story, .auth-card { padding: clamp(26px, 5vw, 54px); min-width: 0; }

.auth-story {
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  background: radial-gradient(ellipse at 0 100%, #540870, transparent 75%),
    linear-gradient(150deg, #103147, #102536);
}

.auth-eyebrow, .auth-step {
  font-size: .75rem;
  font-weight: 750;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.auth-eyebrow { color: #BB6BC2; }
.auth-story h2 {
  max-width: 11ch;
  margin: 16px 0 0;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.05;
  letter-spacing: -.04em;
}
.auth-story p, .auth-story li { color: #e0edf0; line-height: 1.6; }
.auth-story p { margin: 18px 0 0; }
.auth-story ul { padding-inline-start: 20px; margin: 24px 0 0; }
.auth-story li + li { margin-top: 7px; }
.auth-story li::marker { color: #BB6BC2; }

.auth-logo { display: inline-block; max-width: 100%; margin-bottom: 22px; }
.auth-logo img { display: block; width: 132px; max-width: 100%; height: auto; }
.auth-step { margin: 0 0 8px; color: var(--teal); }
.auth-card h1 { margin: 0; font-size: clamp(1.7rem, 4vw, 2.35rem); line-height: 1.12; letter-spacing: -.035em; }
.auth-intro { margin: 10px 0 24px; color: var(--muted); line-height: 1.55; }

.auth-field { margin-bottom: 16px; }
.auth-field label { display: block; margin-bottom: 6px; font-size: .9rem; font-weight: 700; }
.auth-field input:not([type="hidden"]) {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #a6b7c4;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: max(16px, 1rem);
}
.auth-field input:focus { border-color: #087b81; }
.auth-field-invalid input:not([type="hidden"]) { border-color: #b42318; }
.auth-hint { display: block; margin-top: 5px; color: var(--muted); font-size: .83rem; line-height: 1.5; }

.auth-notice, .auth-email { margin: 0 0 18px; padding: 12px; border-radius: 10px; overflow-wrap: anywhere; }
.auth-notice { background: #e7f5f0; color: #175746; font-size: .9rem; }
.auth-notice.auth-error { background: #fdf0ef; color: #9d2018; }
.auth-card .errorlist { margin: 6px 0 0; padding-inline-start: 18px; color: #9d2018; font-size: .88rem; }
.auth-notice .errorlist { margin-top: 0; }

.auth-email { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; background: #eef5f8; font-size: .9rem; }
.auth-email > div { min-width: 0; }
.auth-email .auth-hint { margin-top: 0; }

.auth-password { display: flex; gap: 8px; }
.auth-password input { flex: 1; min-width: 0; }
.auth-password button {
  flex: 0 0 auto;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--teal);
  background: #f5fafb;
  font: inherit;
  font-size: .8rem;
  font-weight: 700;
  cursor: pointer;
}

.auth-forgot { margin: -4px 0 16px; text-align: right; font-size: .88rem; }
.auth-primary {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 0;
  border-radius: 10px;
  background: var(--teal);
  color: #fff;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}
.auth-primary:hover { background: #07575c; }

.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0 14px; color: var(--muted); font-size: .85rem; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.g_id_signin { display: flex; justify-content: center; }
.auth-switch { margin: 18px 0 0; text-align: center; color: var(--muted); font-size: .9rem; }
.auth-footer { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--border); font-size: .8rem; }
.auth-legal { text-align: center; margin: 10px 0 0; font-size: .75rem; }

@media (max-width: 740px) {
  .auth-shell { grid-template-columns: minmax(0, 1fr); width: min(100%, 490px); border-radius: 18px; }
  .auth-story { display: none; }
  .auth-card { padding: clamp(16px, 5vw, 32px); }
}

