:root {
  --auth-ink: #211d31;
  --auth-muted: #6f687e;
  --auth-paper: #fffdfb;
  --auth-pearl: #fbf8ff;
  --auth-lilac: #ece7ff;
  --auth-lilac-strong: #8c6ee6;
  --auth-gold: #b68a42;
  --auth-line: rgba(124, 103, 174, 0.18);
  --auth-shadow: 0 24px 80px rgba(82, 58, 138, 0.14);
}

* {
  box-sizing: border-box;
}
html {
  overflow-x: hidden;
}
body.auth-page {
  min-width: 0;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(
      circle at 8% 12%,
      rgba(236, 231, 255, 0.95),
      transparent 32rem
    ),
    radial-gradient(
      circle at 92% 8%,
      rgba(255, 248, 238, 0.9),
      transparent 28rem
    ),
    linear-gradient(180deg, #fff 0%, var(--auth-pearl) 100%);
  color: var(--auth-ink);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.55;
}

.auth-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--auth-line);
  background: rgba(255, 253, 251, 0.86);
  backdrop-filter: blur(18px);
}
.auth-brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  color: var(--auth-ink);
  text-decoration: none;
}
.auth-brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--auth-line);
  border-radius: 50%;
  background: linear-gradient(135deg, #fff, var(--auth-lilac));
  color: #5b45c8;
  font-weight: 900;
}
.auth-brand strong,
.auth-brand small {
  display: block;
}
.auth-brand strong {
  font-size: 1rem;
  letter-spacing: -0.03em;
}
.auth-brand small {
  color: var(--auth-muted);
  font-size: 0.75rem;
}
.auth-language {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.auth-language a {
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid var(--auth-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--auth-ink);
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
}
.auth-language a[aria-current="true"] {
  background: var(--auth-ink);
  color: #fff;
}

.auth-shell {
  width: min(100% - 32px, 720px);
  margin: 0 auto;
  padding: clamp(38px, 7vw, 86px) 0;
}
.auth-card {
  position: relative;
  overflow: hidden;
  padding: clamp(26px, 5vw, 52px);
  border: 1px solid var(--auth-line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--auth-shadow);
}
.auth-card::before {
  position: absolute;
  top: -92px;
  right: -104px;
  width: 355px;
  height: 355px;
  border-radius: 50%;
  background:
    radial-gradient(
      circle at 50% 50%,
      rgba(249, 207, 113, 0.95) 0 2.5%,
      rgba(249, 207, 113, 0.28) 5%,
      transparent 12%
    ),
    radial-gradient(
      circle at 50% 50%,
      rgba(154, 112, 238, 0.58) 13%,
      rgba(180, 146, 247, 0.23) 31%,
      transparent 57%
    ),
    radial-gradient(
      circle at 21% 35%,
      rgba(142, 103, 226, 0.74) 0 3%,
      transparent 4%
    ),
    radial-gradient(
      circle at 74% 22%,
      rgba(183, 145, 243, 0.68) 0 2.6%,
      transparent 3.8%
    ),
    radial-gradient(
      circle at 79% 70%,
      rgba(142, 103, 226, 0.58) 0 3%,
      transparent 4%
    ),
    radial-gradient(
      circle at 27% 76%,
      rgba(202, 178, 250, 0.75) 0 2.3%,
      transparent 3.4%
    );
  box-shadow: 0 0 72px rgba(145, 104, 229, 0.28);
  content: "";
  opacity: 0.75;
  pointer-events: none;
}
.auth-card::after {
  position: absolute;
  top: -22px;
  right: -22px;
  width: 260px;
  height: 260px;
  background:
    linear-gradient(
        31deg,
        transparent 48%,
        rgba(150, 112, 229, 0.28) 48.4% 49%,
        transparent 49.4%
      )
      0 0/130px 88px,
    linear-gradient(
        -28deg,
        transparent 48%,
        rgba(192, 153, 237, 0.25) 48.4% 49%,
        transparent 49.4%
      )
      0 0/122px 92px;
  content: "";
  opacity: 0.65;
  pointer-events: none;
}
.auth-card > * {
  position: relative;
  z-index: 1;
}
.auth-partner-access .auth-card {
  background: #fff;
}
.auth-partner-access .auth-card::before {
  top: -50px;
  right: -40px;
  width: 520px;
  height: auto;
  aspect-ratio: 612 / 263;
  border-radius: 0;
  background: url("/auth/assets/cell-welcome-dashboard-line.png") center /
    contain no-repeat;
  box-shadow: none;
  opacity: 0.62;
}
.auth-partner-access .auth-card::after {
  display: none;
}
.auth-eyebrow {
  margin: 0 0 10px;
  color: #6b52cf;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}
.auth-card h1 {
  max-width: 580px;
  margin: 0;
  font-size: clamp(2.15rem, 6vw, 4.1rem);
  letter-spacing: -0.06em;
  line-height: 0.98;
}
.auth-lead {
  max-width: 570px;
  margin: 16px 0 28px;
  color: var(--auth-muted);
  font-size: 1.05rem;
}
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--auth-line);
}
.auth-tabs button {
  padding: 14px 10px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--auth-muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
}
.auth-tabs button[aria-selected="true"] {
  border-color: var(--auth-lilac-strong);
  color: var(--auth-ink);
}
.auth-status {
  min-height: 1.55rem;
  margin: 0 0 16px;
  color: var(--auth-muted);
  font-weight: 650;
}
.auth-status[data-state="error"] {
  color: #9d4559;
}
.auth-status[data-state="success"] {
  color: #506d43;
}
.auth-form {
  display: grid;
  gap: 16px;
}
.auth-form[hidden] {
  display: none;
}
.auth-form label {
  display: grid;
  gap: 7px;
  color: var(--auth-ink);
  font-size: 0.9rem;
  font-weight: 800;
}
.auth-form input {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid var(--auth-line);
  border-radius: 14px;
  outline: none;
  background: rgba(255, 255, 255, 0.92);
  color: var(--auth-ink);
  font: inherit;
}
.auth-form input:focus {
  border-color: #7d61d7;
  box-shadow: 0 0 0 4px rgba(140, 110, 230, 0.16);
}
.auth-form input[aria-invalid="true"] {
  border-color: #b34c61;
  box-shadow: 0 0 0 4px rgba(179, 76, 97, 0.14);
}
.auth-form input:disabled,
.auth-form button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}
.auth-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.auth-consent {
  grid-template-columns: auto 1fr;
  align-items: start;
  color: var(--auth-muted) !important;
  font-weight: 600 !important;
  line-height: 1.5;
}
.auth-consent input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
}
.auth-link {
  color: #684bb9;
  font-weight: 800;
  text-underline-offset: 3px;
}
.auth-link-button {
  justify-self: start;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  text-align: left;
  text-decoration: underline;
  cursor: pointer;
}
.auth-primary {
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid rgba(97, 72, 170, 0.24);
  border-radius: 999px;
  background: linear-gradient(135deg, #382e63, #674caa);
  box-shadow: 0 14px 30px rgba(87, 55, 135, 0.18);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 850;
}
.auth-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #302750, #5e439e);
}
.auth-note {
  margin: 0;
  color: var(--auth-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}
.auth-return {
  margin: 25px 0 0;
  color: var(--auth-muted);
  font-size: 0.92rem;
}
.auth-return a {
  color: var(--auth-ink);
  font-weight: 850;
  text-decoration: none;
}
.auth-return a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 620px) {
  .auth-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .auth-shell {
    width: min(100% - 24px, 720px);
    padding: 24px 0 40px;
  }
  .auth-card {
    border-radius: 24px;
  }
  .auth-card::before {
    top: -125px;
    right: -165px;
    opacity: 0.48;
  }
  .auth-partner-access .auth-card::before {
    top: -18px;
    right: -95px;
    width: 390px;
    opacity: 0.46;
  }
  .auth-card h1 {
    font-size: clamp(2.15rem, 12vw, 3.4rem);
  }
  .auth-two-col {
    grid-template-columns: 1fr;
  }
  .auth-tabs button {
    padding-inline: 4px;
    font-size: 0.79rem;
  }
}
