:root {
  color-scheme: dark;
  --auth-bg: #07090b;
  --auth-panel: #0e1215;
  --auth-panel-soft: #12181c;
  --auth-line: rgba(180, 205, 220, 0.16);
  --auth-line-strong: rgba(111, 169, 207, 0.46);
  --auth-text: #f5f8fa;
  --auth-muted: #9eabb4;
  --auth-blue: #74b4dd;
  --auth-blue-strong: #8ac8ef;
  --auth-gold: #efb969;
  --auth-danger: #ffb5aa;
  --auth-success: #85e8b3;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
  background: var(--auth-bg);
}

body.auth-page {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  color: var(--auth-text);
  background:
    radial-gradient(720px 380px at 50% -80px, rgba(111, 169, 207, 0.15), transparent 72%),
    linear-gradient(180deg, #090c0f 0%, var(--auth-bg) 100%);
}

.auth-page button,
.auth-page input {
  font: inherit;
}

.auth-header {
  border-bottom: 1px solid rgba(180, 205, 220, 0.11);
  background: rgba(7, 9, 11, 0.9);
}

.auth-header-inner {
  display: flex;
  width: min(940px, calc(100% - 32px));
  min-height: 106px;
  margin: 0 auto;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
}

.auth-brand {
  display: inline-flex;
  width: min(240px, 100%);
  align-items: center;
  overflow: hidden;
}

.auth-brand img {
  display: block;
  width: calc(100% / 0.75092);
  max-width: none;
  height: auto;
  transform: translateX(-12.753%);
}

.auth-header-action,
.auth-text-link {
  color: var(--auth-text);
  font-weight: 700;
  text-decoration: none;
}

.auth-header-action {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--auth-line);
  border-radius: 10px;
  padding: 0 15px;
  font-size: 13px;
}

.auth-header-action:hover,
.auth-header-action:focus-visible,
.auth-text-link:hover,
.auth-text-link:focus-visible {
  color: #ffffff;
  border-color: var(--auth-line-strong);
  outline: none;
}

.auth-main {
  display: grid;
  min-height: calc(100vh - 106px);
  min-height: calc(100dvh - 106px);
  place-items: center;
  padding: 26px 16px 38px;
}

.auth-shell {
  display: grid;
  width: min(940px, 100%);
  grid-template-columns: minmax(250px, 0.72fr) minmax(0, 1.28fr);
  overflow: hidden;
  border: 1px solid var(--auth-line);
  border-radius: 20px;
  background: var(--auth-panel);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
}

.auth-intro {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 470px;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px 30px;
  overflow: hidden;
  border-right: 1px solid var(--auth-line);
  background:
    radial-gradient(380px 260px at 8% 10%, rgba(111, 169, 207, 0.17), transparent 70%),
    linear-gradient(160deg, #141b20 0%, #0b0f12 72%);
}

.auth-intro::after {
  content: "";
  position: absolute;
  inset: auto -80px -120px auto;
  z-index: -1;
  width: 270px;
  height: 270px;
  border: 1px solid rgba(111, 169, 207, 0.16);
  border-radius: 50%;
}

.auth-eyebrow {
  margin: 0 0 12px;
  color: var(--auth-blue-strong);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.auth-intro h1,
.auth-card h2,
.auth-panel h2 {
  margin: 0;
  color: #ffffff;
  font-family: "Orbitron", "Manrope", sans-serif;
  letter-spacing: 0;
}

.auth-intro h1 {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.07;
}

.auth-intro-copy {
  margin: 18px 0 0;
  color: var(--auth-muted);
  font-size: 15px;
  line-height: 1.65;
}

.auth-benefits {
  display: grid;
  gap: 11px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.auth-benefits li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  color: #dce5ea;
  font-size: 13px;
  line-height: 1.4;
}

.auth-benefits li::before {
  content: "✓";
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid rgba(111, 169, 207, 0.38);
  border-radius: 50%;
  color: var(--auth-blue-strong);
  font-size: 12px;
  font-weight: 900;
}

.auth-intro-note {
  margin: 22px 0 0;
  color: #75838c;
  font-size: 11px;
  line-height: 1.55;
}

.auth-card {
  display: grid;
  align-content: center;
  min-width: 0;
  padding: 30px clamp(26px, 4.2vw, 46px);
}

.auth-card-inner {
  width: min(440px, 100%);
  margin: 0 auto;
}

.auth-card h2,
.auth-panel h2 {
  font-size: clamp(27px, 3vw, 33px);
  line-height: 1.12;
}

.auth-card-lead,
.auth-panel-lead {
  margin: 7px 0 0;
  color: var(--auth-muted);
  font-size: 14px;
  line-height: 1.55;
}

.auth-google-wrap {
  width: 100%;
  margin-top: 0;
}

.auth-google-slot {
  display: grid;
  width: 100%;
  min-height: 32px;
  place-items: center;
  overflow: hidden;
  border-radius: 7px;
  background: transparent;
}

.auth-intro-slogan {
  margin: 22px 0 0;
  color: var(--auth-text);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
}

.auth-google-slot.is-locked {
  cursor: not-allowed;
  opacity: 0.72;
  pointer-events: none;
}

.auth-google-slot > div {
  position: relative !important;
  width: min(400px, 100%) !important;
  height: 32px !important;
  overflow: hidden !important;
  border-radius: 7px !important;
  background: #101820 !important;
}

.auth-google-slot > div::after {
  position: absolute;
  z-index: 2;
  inset: 0;
  border: 1px solid #344149;
  border-radius: 7px;
  content: "";
  pointer-events: none;
}

.auth-google-slot iframe {
  width: calc(min(100%, 400px) + 20px) !important;
  max-width: none !important;
  margin: -6px -10px !important;
}

.auth-google-placeholder {
  display: inline-flex;
  width: 100%;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  border: 1px solid #8e918f;
  border-radius: 7px;
  padding: 0 14px;
  color: #ffffff;
  background: #101820;
  font-size: 14px;
  font-weight: 600;
}

.auth-google-placeholder svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
}

.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin: 14px 0;
  color: #6f7b84;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  background: var(--auth-line);
}

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

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

.auth-field-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.auth-field {
  display: grid;
  gap: 5px;
}

.auth-field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.auth-label,
.auth-field-row label {
  color: #dce5ea;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.auth-inline-action {
  border: 0;
  padding: 0;
  color: var(--auth-blue-strong);
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.auth-inline-action:hover,
.auth-inline-action:focus-visible {
  color: #ffffff;
  outline: none;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-input-wrap {
  position: relative;
}

.auth-input {
  width: 100%;
  min-height: 42px;
  border: 1px solid #344149;
  border-radius: 9px;
  padding: 0 13px;
  color: #ffffff;
  background: #090d10;
  font-size: 14px;
  outline: none;
}

.auth-input.has-toggle {
  padding-right: 72px;
}

.auth-input::placeholder {
  color: #64717a;
}

.auth-input:focus {
  border-color: var(--auth-blue);
  box-shadow: 0 0 0 3px rgba(111, 169, 207, 0.13);
}

.auth-password-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  min-width: 48px;
  border: 0;
  padding: 5px 7px;
  color: #9eabb4;
  background: transparent;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transform: translateY(-50%);
}

.auth-password-toggle:hover,
.auth-password-toggle:focus-visible {
  color: #ffffff;
  outline: none;
}

.auth-submit,
.auth-secondary-button {
  display: inline-flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  padding: 0 16px;
  font-weight: 850;
  cursor: pointer;
}

.auth-submit {
  border: 1px solid var(--auth-blue);
  color: #071015;
  background: var(--auth-blue);
}

.auth-submit:hover,
.auth-submit:focus-visible {
  border-color: var(--auth-blue-strong);
  background: var(--auth-blue-strong);
  outline: none;
}

.auth-secondary-button {
  border: 1px solid #344149;
  color: var(--auth-text);
  background: transparent;
}

.auth-secondary-button:hover,
.auth-secondary-button:focus-visible {
  border-color: var(--auth-line-strong);
  outline: none;
}

.auth-submit:disabled,
.auth-secondary-button:disabled {
  cursor: wait;
  opacity: 0.56;
}

.auth-status {
  min-height: 22px;
  margin: 14px 0 0;
  color: var(--auth-muted);
  font-size: 13px;
  line-height: 1.45;
}

.auth-status:empty {
  min-height: 0;
  margin-top: 0;
}

.auth-status[data-tone="error"] {
  color: var(--auth-danger);
}

.auth-status[data-tone="success"] {
  color: var(--auth-success);
}

.auth-card-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  border-top: 1px solid var(--auth-line);
  padding-top: 13px;
  color: #7f8b94;
  font-size: 12px;
}

.auth-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.auth-footer-links a {
  color: #aeb9c0;
  text-decoration: none;
}

.auth-footer-links a:hover,
.auth-footer-links a:focus-visible {
  color: #ffffff;
  outline: none;
}

.auth-card-footer.auth-card-footer-legal {
  align-items: center;
  justify-content: center;
}

.auth-signup-legal {
  margin: 0;
  color: #8f9ba4;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.auth-signup-legal a {
  color: var(--auth-blue-strong);
  text-underline-offset: 2px;
}

.auth-signup-legal a:hover,
.auth-signup-legal a:focus-visible {
  color: #ffffff;
  outline: none;
}

.auth-panel {
  display: grid;
  gap: 18px;
}

.auth-panel-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.auth-panel-note {
  margin: 0;
  color: #81909a;
  font-size: 12px;
  line-height: 1.5;
}

.auth-switch-copy {
  margin: 12px 0 0;
  color: #8e9aa3;
  font-size: 13px;
  text-align: center;
}

.auth-switch-copy a {
  color: var(--auth-text);
  font-weight: 800;
}

@media (max-width: 760px) {
  .auth-main {
    align-items: start;
    padding-top: 22px;
  }

  .auth-shell {
    width: min(560px, 100%);
    grid-template-columns: 1fr;
  }

  .auth-intro {
    min-height: auto;
    padding: 26px 28px;
    border-right: 0;
    border-bottom: 1px solid var(--auth-line);
  }

  .auth-intro h1 {
    font-size: 29px;
  }

  .auth-intro-copy {
    margin-top: 10px;
  }

  .auth-benefits,
  .auth-intro-note {
    display: none;
  }

  .auth-card {
    padding: 26px 28px 28px;
  }
}

@media (max-width: 480px) {
  .auth-header-inner {
    width: min(100% - 24px, 440px);
    min-height: 76px;
  }

  .auth-brand {
    width: min(210px, 72vw);
  }

  .auth-main {
    min-height: calc(100dvh - 76px);
    padding: 14px 10px 28px;
  }

  .auth-shell {
    border-radius: 14px;
  }

  .auth-intro {
    padding: 22px 20px;
  }

  .auth-intro h1 {
    font-size: 25px;
  }

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

  .auth-card h2,
  .auth-panel h2 {
    font-size: 27px;
  }

  .auth-panel-actions {
    grid-template-columns: 1fr;
  }

  .auth-field-pair {
    grid-template-columns: 1fr;
  }

  .auth-card-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .auth-card-footer.auth-card-footer-legal {
    align-items: center;
    flex-direction: row;
  }
}

.auth-switch-copy-lead {
  margin-top: 7px;
  text-align: left;
}

