:root {
  --bg: #0f2740;
  --bg-deep: #0a1b2c;
  --panel: rgba(248, 250, 252, 0.98);
  --panel-line: rgba(20, 44, 65, 0.1);
  --ink: #10283b;
  --ink-soft: #5b7288;
  --blue: #21588a;
  --blue-strong: #163f66;
  --mist: rgba(255, 255, 255, 0.08);
  --shadow: 0 36px 80px rgba(4, 14, 24, 0.34);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", "Trebuchet MS", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(77, 122, 166, 0.25), transparent 30%),
    radial-gradient(circle at bottom right, rgba(18, 50, 75, 0.45), transparent 32%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  color: #f3f7fb;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
}

@media (min-width: 1180px) {
  body {
    zoom: 0.9;
  }
}

.auth-card {
  width: min(1140px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
  gap: 26px;
  padding: 26px;
  border-radius: 36px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.auth-showcase {
  position: relative;
  overflow: hidden;
  padding: 30px;
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    linear-gradient(180deg, rgba(18, 49, 74, 0.82) 0%, rgba(10, 27, 44, 0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-showcase::before,
.auth-showcase::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.auth-showcase::before {
  width: 240px;
  height: 240px;
  top: -120px;
  right: -32px;
  background: rgba(74, 113, 150, 0.24);
}

.auth-showcase::after {
  width: 180px;
  height: 180px;
  bottom: -86px;
  left: -44px;
  background: rgba(33, 88, 138, 0.16);
}

.auth-home-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(243, 247, 251, 0.88);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
}

.auth-home-link-mobile {
  display: none;
}

.auth-home-link::before {
  content: "<";
  font-size: 0.9rem;
}

.auth-logo-wrap {
  width: min(100%, 400px);
  height: 158px;
  margin: 26px auto 0;
  overflow: hidden;
  position: relative;
}

.auth-logo {
  width: 110%;
  max-width: none;
  display: block;
  margin: -18% 0 0 -10%;
}

.auth-kicker,
.auth-panel-kicker,
.auth-form span {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.75rem;
  font-weight: 800;
}

.auth-kicker {
  margin-top: 26px;
  color: #9fc1e2;
}

.auth-showcase h1 {
  margin: 14px 0 0;
  max-width: 10ch;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 7vw, 5rem);
  line-height: 1.03;
  letter-spacing: -0.025em;
  color: #f4f8fb;
}

.auth-headline-nowrap {
  white-space: nowrap;
}

.auth-lede {
  margin: 18px 0 0;
  max-width: 50ch;
  color: rgba(234, 241, 248, 0.82);
  font-size: 1.02rem;
  line-height: 1.7;
}

.auth-points {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.auth-points li {
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--mist);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #f4f8fb;
  line-height: 1.45;
}

.auth-panel {
  padding: 30px;
  border-radius: 30px;
  background: var(--panel);
  border: 1px solid var(--panel-line);
  color: var(--ink);
}

.auth-panel-top h2 {
  margin: 10px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.95;
  color: var(--blue-strong);
}

.auth-panel-logo-wrap {
  display: none;
}

.auth-panel-logo {
  display: block;
  width: 100%;
  max-width: none;
}

.auth-panel-kicker,
.auth-form span {
  color: var(--blue);
}

.auth-panel-copy {
  margin: 14px 0 0;
  color: var(--ink-soft);
  line-height: 1.65;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
  padding: 6px;
  border-radius: 20px;
  background: rgba(21, 49, 74, 0.06);
}

.auth-tab,
.auth-submit {
  border: none;
  cursor: pointer;
  transition: transform 120ms ease, filter 120ms ease;
}

.auth-tab {
  padding: 14px 16px;
  border-radius: 16px;
  background: transparent;
  color: var(--blue-strong);
  font-weight: 800;
}

.auth-tab.is-active {
  background: linear-gradient(180deg, var(--blue) 0%, var(--blue-strong) 100%);
  color: #fff;
  box-shadow: 0 10px 24px rgba(12, 36, 56, 0.18);
}

.auth-form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.auth-form label {
  display: grid;
  gap: 8px;
}

.auth-legal-note {
  margin: -2px 0 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.55;
}

.auth-legal-note a {
  color: var(--blue-strong);
  font-weight: 700;
}

.auth-social {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.auth-social-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  color: rgba(91, 114, 136, 0.82);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.auth-social-divider::before,
.auth-social-divider::after {
  content: "";
  height: 1px;
  background: rgba(16, 40, 59, 0.12);
}

.auth-google-button {
  min-height: 44px;
  width: min(100%, 420px);
  display: flex;
  justify-content: center;
  margin-inline: auto;
}

.auth-google-button > div {
  width: 100% !important;
  margin-inline: auto;
}

.auth-google-preview {
  width: 100%;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(16, 40, 59, 0.14);
  background: #fff;
  color: #23384d;
  font-size: 0.98rem;
  font-weight: 700;
  box-shadow: 0 6px 14px rgba(16, 40, 59, 0.06);
  cursor: default;
}

.auth-google-preview-mark {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.auth-google-preview-mark svg {
  width: 18px;
  height: 18px;
  display: block;
}

.auth-turnstile {
  display: grid;
  gap: 10px;
}

.auth-agreement {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  align-items: center;
  column-gap: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(21, 49, 74, 0.04);
  border: 1px solid rgba(20, 44, 65, 0.08);
}

.auth-agreement input {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  margin: 0;
  border-radius: 4px;
  border: 1.5px solid rgba(20, 44, 65, 0.35);
  background: #fff;
  display: inline-grid;
  place-content: center;
  flex: 0 0 auto;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.auth-agreement input::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: #fff;
  transform: scale(0);
  transition: transform 140ms ease;
}

.auth-agreement input:hover {
  border-color: rgba(22, 58, 99, 0.55);
}

.auth-agreement input:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(40, 86, 139, 0.16);
}

.auth-agreement input:checked {
  background: var(--blue);
  border-color: var(--blue);
}

.auth-agreement input:checked::after {
  transform: scale(1);
}

.auth-agreement span {
  margin: 0;
  display: block;
  color: var(--ink);
  font-size: 0.93rem;
  line-height: 1.45;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.auth-agreement a {
  color: var(--blue-strong);
  text-decoration: none;
}

.auth-agreement a:hover {
  text-decoration: underline;
}

.auth-turnstile-widget {
  min-height: 66px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(21, 49, 74, 0.04);
  border: 1px solid rgba(20, 44, 65, 0.08);
}

.auth-turnstile-help {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.auth-form input:not([type="checkbox"]) {
  width: 100%;
  height: 58px;
  padding: 0 16px;
  border-radius: 18px;
  border: 1px solid rgba(20, 44, 65, 0.14);
  background: #fff;
  color: var(--ink);
  font-size: 1rem;
}

.auth-form input:not([type="checkbox"])::placeholder {
  color: rgba(81, 103, 130, 0.72);
}

.auth-form input:not([type="checkbox"]):focus {
  outline: 3px solid rgba(33, 88, 138, 0.14);
  border-color: rgba(33, 88, 138, 0.4);
}

.auth-submit {
  margin-top: 6px;
  height: 60px;
  border-radius: 18px;
  background: linear-gradient(180deg, var(--blue) 0%, var(--blue-strong) 100%);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  box-shadow: 0 10px 0 #0c2438, 0 18px 30px rgba(5, 16, 27, 0.28);
}

.auth-submit:active,
.auth-tab:active {
  transform: translateY(2px);
}

.auth-submit:disabled {
  opacity: 0.8;
  cursor: wait;
}

.auth-message {
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(33, 88, 138, 0.08);
  color: var(--blue-strong);
  line-height: 1.5;
}

.auth-message.is-error {
  background: rgba(172, 64, 44, 0.08);
  color: #8b311e;
}

.hidden {
  display: none;
}

@media (max-width: 980px) {
  .auth-card {
    grid-template-columns: 1fr;
  }

  .auth-panel {
    order: 1;
  }

  .auth-showcase {
    order: 2;
  }

  .auth-panel {
    padding: 24px;
  }
}

@media (max-width: 640px) {
  body {
    color: var(--ink);
  }

  .auth-shell {
    display: block;
    padding: 14px 14px 24px;
  }

  .auth-home-link-mobile {
    display: inline-flex;
    margin: 2px 4px 14px;
    color: rgba(243, 247, 251, 0.92);
  }

  .auth-card {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
  }

  .auth-panel,
  .auth-showcase {
    border-radius: 28px;
  }

  .auth-panel {
    order: 1;
    padding: 18px 18px 20px;
    background: rgba(248, 250, 252, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 18px 42px rgba(7, 22, 36, 0.22);
  }

  .auth-panel-top {
    display: grid;
    justify-items: center;
    text-align: center;
  }

  .auth-panel-kicker {
    margin-bottom: 6px;
    font-size: 0.68rem;
    letter-spacing: 0.16em;
  }

  .auth-panel-logo-wrap {
    display: block;
    width: min(100%, 252px);
    height: 114px;
    margin: 0 auto 8px;
    overflow: hidden;
    position: relative;
  }

  .auth-panel-logo {
    width: 128%;
    max-width: none;
    margin: -21% 0 0 -14%;
  }

  .auth-panel-top h2 {
    margin-top: 0;
    font-size: clamp(1.58rem, 7vw, 2rem);
    line-height: 1.02;
    letter-spacing: -0.015em;
    display: none;
  }

  .auth-panel-copy {
    margin-top: 2px;
    font-size: 0.98rem;
    line-height: 1.55;
  }

  .auth-tabs {
    margin-top: 18px;
    padding: 4px;
    gap: 6px;
    border-radius: 20px;
  }

  .auth-tab {
    padding: 12px 10px;
    border-radius: 16px;
    font-size: 0.98rem;
  }

  .auth-form {
    gap: 12px;
    margin-top: 16px;
  }

  .auth-social {
    margin-top: 14px;
    gap: 12px;
  }

  .auth-social-divider {
    gap: 10px;
    font-size: 0.72rem;
  }

  .auth-form span {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
  }

  .auth-legal-note {
    font-size: 0.88rem;
    line-height: 1.5;
  }

  .auth-form input:not([type="checkbox"]) {
    height: 54px;
    border-radius: 16px;
    font-size: 0.98rem;
  }

  .auth-turnstile-widget {
    min-height: 64px;
    padding: 8px;
    border-radius: 16px;
  }

  .auth-agreement {
    padding: 11px 12px;
    border-radius: 16px;
  }

  .auth-agreement span {
    font-size: 0.9rem;
  }

  .auth-submit {
    height: 56px;
    margin-top: 2px;
    border-radius: 18px;
    font-size: 1rem;
  }

  .auth-showcase {
    display: none;
  }

  .auth-message {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 16px;
  }
}
