:root {
  color-scheme: dark;
  --bg: #0b0f14;
  --panel: #0f151d;
  --line: #243244;
  --text: #e7edf4;
  --muted: #91a0b2;
  --accent: #60a5fa;
  --accent-soft: rgb(96 165 250 / 12%);
  --danger: #ff9a9d;
  --success: #7ddfc1;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

button,
input {
  color: inherit;
  font: inherit;
}

[hidden] {
  display: none !important;
}

.authShell {
  display: grid;
  grid-template-columns: minmax(380px, 0.96fr) minmax(420px, 1.04fr);
  min-height: 100%;
}

.authVisual {
  min-width: 0;
  min-height: 100vh;
  overflow: hidden;
  background: #080c11;
}

.authVisual > img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  object-fit: cover;
  object-position: center;
}

.authPanel {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 40px 24px;
  background:
    radial-gradient(circle at 78% 18%, rgb(96 165 250 / 13%), transparent 28%),
    linear-gradient(180deg, #111821, #0b0f14);
}

.authCard {
  display: grid;
  gap: 16px;
  width: min(470px, 100%);
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.accountSection {
  display: grid;
  gap: 13px;
  border-top: 1px solid rgb(148 163 184 / 14%);
  padding-top: 16px;
}

.accountSection h2 {
  margin: 0;
  color: #dce6f2;
  font-size: 14px;
  font-weight: 720;
}

.authLogo {
  width: 174px;
  height: auto;
  margin-bottom: 18px;
}

h1 {
  margin: 0;
  color: var(--text);
  font-size: 31px;
  font-weight: 700;
  letter-spacing: 0;
}

.subtitle {
  margin: -6px 0 16px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.authForm {
  display: grid;
  gap: 20px;
}

label {
  display: grid;
  gap: 8px;
}

label span {
  color: #d5dee9;
  font-size: 14px;
  font-weight: 650;
}

input,
select {
  width: 100%;
  height: 46px;
  border: 1px solid rgb(148 163 184 / 22%);
  border-radius: 10px;
  outline: 0;
  padding: 0 15px;
  background: rgb(7 11 16 / 72%);
  color: var(--text);
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

select {
  cursor: pointer;
}

input[readonly] {
  border-color: rgb(148 163 184 / 14%);
  background: rgb(255 255 255 / 4%);
  color: var(--muted);
}

input:focus,
select:focus {
  border-color: rgb(96 165 250 / 72%);
  box-shadow: 0 0 0 4px rgb(96 165 250 / 13%);
}

.checkRow {
  display: flex;
  align-items: center;
  gap: 9px;
}

.checkRow input {
  width: 16px;
  height: 16px;
}

button {
  position: relative;
  height: 48px;
  overflow: hidden;
  border: 1px solid rgb(96 165 250 / 72%);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 10%), rgb(255 255 255 / 0)),
    linear-gradient(135deg, #2563eb, #17446f 58%, #0f2c49);
  box-shadow:
    0 12px 28px rgb(37 99 235 / 18%),
    inset 0 1px 0 rgb(255 255 255 / 18%);
  color: #fff;
  cursor: pointer;
  font-weight: 720;
  transition: transform 120ms ease, border-color 120ms ease, box-shadow 120ms ease, filter 120ms ease;
}

button::after {
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 13%), transparent);
  opacity: 0;
  transform: translateX(-45%);
  transition: opacity 160ms ease, transform 320ms ease;
  content: "";
}

button:hover {
  border-color: rgb(96 165 250 / 88%);
  box-shadow:
    0 14px 34px rgb(37 99 235 / 28%),
    inset 0 1px 0 rgb(255 255 255 / 22%);
  filter: brightness(1.06);
}

button:hover::after {
  opacity: 1;
  transform: translateX(45%);
}

button:active {
  transform: translateY(1px);
}

button[disabled] {
  cursor: wait;
  filter: grayscale(0.3);
  opacity: 0.7;
}

.secondaryButton {
  border-color: rgb(148 163 184 / 28%);
  background: rgb(255 255 255 / 5%);
  box-shadow: none;
  color: #dbe8f6;
}

.consentRow {
  align-items: flex-start;
  line-height: 1.4;
}

.consentRow span {
  color: #b8c8db;
  font-size: 12px;
}

.consentRow a {
  color: #cfe4ff;
  text-decoration: underline;
  text-decoration-color: rgb(96 165 250 / 45%);
  text-underline-offset: 2px;
}

.message {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgb(96 165 250 / 24%);
  border-radius: 10px;
  background: var(--accent-soft);
  color: #c9e1ff;
  font-size: 13px;
  line-height: 1.4;
}

.message.error {
  border-color: rgb(240 93 94 / 30%);
  background: rgb(91 20 28 / 45%);
  color: var(--danger);
}

.message.ok {
  border-color: rgb(24 185 133 / 26%);
  background: rgb(24 185 133 / 10%);
  color: var(--success);
}

.billingSuccessBox {
  display: grid;
  gap: 10px;
  border: 1px solid rgb(24 185 133 / 28%);
  border-radius: 12px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgb(24 185 133 / 13%), rgb(96 165 250 / 7%)),
    rgb(9 15 21 / 78%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 8%);
}

.billingSuccessBox span {
  color: var(--success);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.billingSuccessBox h2 {
  margin: 0;
  color: #ecfdf5;
  font-size: 20px;
  line-height: 1.22;
}

.billingSuccessBox p {
  margin: 0;
  color: #b8c6d6;
  font-size: 14px;
  line-height: 1.52;
}

.billingSuccessBox a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid rgb(24 185 133 / 38%);
  border-radius: 999px;
  background: rgb(24 185 133 / 12%);
  color: #b9f5df;
  font-size: 13px;
  font-weight: 720;
  text-decoration: none;
}

.billingSuccessBox a:hover {
  border-color: rgb(24 185 133 / 58%);
  background: rgb(24 185 133 / 18%);
}

.formFoot {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
  text-align: center;
}

.formFoot a {
  color: var(--accent);
  font-weight: 650;
  text-decoration: none;
}

.formFoot a:hover {
  text-decoration: underline;
}

.authLinks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 16px;
  padding-top: 8px;
}

.authLinks a {
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.authLinks a:hover {
  color: #dbeafe;
  text-decoration: underline;
}

@media (max-width: 940px) {
  .authShell {
    grid-template-columns: 1fr;
    min-height: 100%;
  }

  .authVisual {
    min-height: 220px;
    max-height: 32vh;
  }

  .authVisual > img {
    min-height: 220px;
    object-position: center 38%;
  }

  .authPanel {
    min-height: auto;
    padding: 30px 20px 42px;
  }

  .authCard {
    width: min(460px, 100%);
  }
}

@media (max-width: 560px) {
  html,
  body {
    min-height: 100%;
    height: auto;
  }

  .authVisual {
    display: none;
  }

  .authPanel {
    min-height: 100vh;
    padding: 22px 18px 28px;
    place-items: start center;
  }

  .authCard {
    gap: 14px;
    padding: 10px 0 0;
  }

  .authLogo {
    width: 152px;
    margin-bottom: 10px;
  }

  h1 {
    font-size: 27px;
  }

  .subtitle {
    margin-bottom: 10px;
    font-size: 14px;
  }

  .authForm {
    gap: 15px;
  }

  input {
    height: 44px;
  }

  button {
    height: 46px;
  }

  .formFoot {
    font-size: 13px;
  }

  .authLinks {
    justify-content: flex-start;
  }
}
