:root {
  --bg: #f6fbff;
  --surface: #ffffff;
  --surface-soft: #eef8ff;
  --ink: #121826;
  --muted: #5d6b82;
  --line: #d9e8f5;
  --blue: #1575ff;
  --blue-dark: #0c4ad9;
  --cyan: #2fc7de;
  --green: #27c79a;
  --mint: #dff9ef;
  --rose: #ff6b89;
  --amber: #f5b84b;
  --shadow: 0 20px 52px rgba(31, 84, 150, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(135deg, rgba(21, 117, 255, 0.08), transparent 34%),
    linear-gradient(315deg, rgba(39, 199, 154, 0.11), transparent 32%),
    linear-gradient(180deg, #fbfdff 0%, var(--bg) 52%, #eef8ff 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-shell {
  display: grid;
  width: min(1160px, calc(100% - 32px));
  min-height: 100vh;
  grid-template-columns: minmax(0, 1.06fr) minmax(360px, 0.82fr);
  gap: 34px;
  align-items: center;
  margin: 0 auto;
  padding: 32px 0;
}

.auth-product {
  display: grid;
  gap: 34px;
  align-content: center;
  min-height: min(720px, calc(100vh - 64px));
  padding: 26px 0;
}

.brand {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand__mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue) 0%, var(--cyan) 55%, var(--green) 100%);
  box-shadow: 0 14px 30px rgba(21, 117, 255, 0.24);
}

.brand__mark svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
  stroke: none;
}

.brand__text {
  display: grid;
  gap: 2px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand__text small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.product-copy {
  display: grid;
  gap: 16px;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid #ccecff;
  border-radius: 8px;
  color: #0f6db7;
  background: rgba(231, 247, 255, 0.88);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.product-copy h1 {
  max-width: 690px;
  margin: 0;
  color: #101827;
  font-size: clamp(44px, 6vw, 76px);
  line-height: 0.96;
  letter-spacing: 0;
}

.product-copy p {
  max-width: 610px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.module-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  max-width: 640px;
}

.module-strip span {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(217, 232, 245, 0.92);
  border-radius: 8px;
  color: #244562;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 24px rgba(38, 88, 145, 0.08);
  font-weight: 800;
}

.module-strip span:nth-child(1) {
  border-bottom-color: var(--blue);
}

.module-strip span:nth-child(2) {
  border-bottom-color: var(--green);
}

.module-strip span:nth-child(3) {
  border-bottom-color: var(--amber);
}

.module-strip span:nth-child(4) {
  border-bottom-color: var(--rose);
}

.auth-panel {
  display: grid;
  justify-items: stretch;
}

.auth-card {
  display: grid;
  gap: 24px;
  width: 100%;
  padding: 26px;
  border: 1px solid rgba(217, 232, 245, 0.95);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.auth-card__heading {
  display: grid;
  gap: 16px;
}

.session-badge {
  display: inline-flex;
  width: fit-content;
  min-height: 34px;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid #bdf1db;
  border-radius: 8px;
  color: #0f684f;
  background: var(--mint);
  font-size: 14px;
  font-weight: 800;
}

.session-badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(39, 199, 154, 0.18);
}

.auth-card h2 {
  margin: 0;
  color: #101827;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: 0;
}

.auth-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

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

.field {
  display: grid;
  gap: 8px;
}

.field span {
  color: #263d58;
  font-size: 14px;
  font-weight: 800;
}

.field input {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid #cfe1f0;
  border-radius: 8px;
  color: var(--ink);
  background: #fbfdff;
  font: inherit;
  font-size: 16px;
  font-weight: 650;
  outline: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.field input:focus {
  border-color: rgba(21, 117, 255, 0.72);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(21, 117, 255, 0.12);
}

.form-error {
  display: none;
  margin: -2px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 107, 137, 0.38);
  border-radius: 8px;
  color: #9b2441;
  background: rgba(255, 107, 137, 0.1);
  font-size: 14px;
  font-weight: 750;
}

.form-error.is-visible {
  display: block;
}

.button {
  display: inline-flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    opacity 160ms ease;
}

.button svg {
  width: 21px;
  height: 21px;
}

.button:hover,
.button:focus-visible,
.continue-link:hover,
.continue-link:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.button--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue) 0%, #16a9f5 100%);
  box-shadow: 0 14px 26px rgba(21, 117, 255, 0.25);
}

.button.is-loading {
  cursor: wait;
  opacity: 0.78;
}

.continue-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #d5e6f6;
  border-radius: 8px;
  color: #0d4c8c;
  background: #fff;
  font-weight: 800;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.continue-link svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 900px) {
  .auth-shell {
    grid-template-columns: 1fr;
    gap: 22px;
    align-items: start;
    padding: 22px 0;
  }

  .auth-product {
    min-height: auto;
    gap: 22px;
    padding: 0;
  }

  .product-copy h1 {
    font-size: 46px;
  }

  .auth-card {
    padding: 22px;
  }
}

@media (max-width: 560px) {
  .auth-shell {
    width: min(100% - 24px, 460px);
    padding: 16px 0 22px;
  }

  .brand__mark {
    width: 42px;
    height: 42px;
  }

  .brand__text small {
    max-width: 190px;
    overflow-wrap: anywhere;
  }

  .product-copy {
    gap: 12px;
  }

  .product-copy h1 {
    font-size: 36px;
    line-height: 1;
  }

  .product-copy p {
    font-size: 16px;
  }

  .module-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .module-strip span {
    min-height: 46px;
  }

  .auth-card h2 {
    font-size: 26px;
  }
}
