:root {
  --auth-ink: #0b1220;
  --auth-text: #344056;
  --auth-muted: #5d6a80;
  --auth-line: #dfe5ee;
  --auth-soft: #f5f7fb;
  --auth-white: #fff;
  --auth-primary: #5a46d6;
  --auth-primary-dark: #4934be;
  --auth-success: #087a55;
  --auth-error: #b42335;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--auth-white);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--auth-ink);
  background: var(--auth-white);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

:focus-visible {
  outline: 3px solid #1c7cf0;
  outline-offset: 3px;
}

.auth-skip {
  position: fixed;
  z-index: 30;
  top: 12px;
  left: 12px;
  padding: 10px 15px;
  color: #fff;
  background: #111a2c;
  border-radius: 9px;
  transform: translateY(-160%);
}

.auth-skip:focus {
  transform: translateY(0);
}

.auth-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(420px, .88fr) minmax(540px, 1.12fr);
}

.auth-story {
  position: relative;
  display: flex;
  min-height: 100vh;
  padding: 52px clamp(40px, 5vw, 82px);
  overflow: hidden;
  flex-direction: column;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(19, 29, 51, .25), rgba(11, 18, 32, .92)),
    #0b1220;
}

.auth-story::after {
  position: absolute;
  right: -130px;
  bottom: -120px;
  width: 430px;
  height: 430px;
  border: 1px solid rgba(145, 132, 255, .18);
  border-radius: 50%;
  box-shadow: 0 0 0 80px rgba(145, 132, 255, .035), 0 0 0 160px rgba(145, 132, 255, .025);
  content: "";
}

.auth-story-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(4px);
  pointer-events: none;
}

.auth-story-glow-one {
  top: 18%;
  left: -210px;
  width: 440px;
  height: 440px;
  background: rgba(90, 70, 214, .18);
}

.auth-story-glow-two {
  top: 48%;
  right: -180px;
  width: 360px;
  height: 360px;
  background: rgba(71, 215, 209, .09);
}

.auth-brand {
  position: relative;
  z-index: 2;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 11px;
  color: var(--auth-ink);
  font-size: 1.2rem;
  font-weight: 820;
  letter-spacing: -.04em;
  text-decoration: none;
}

.auth-brand > span:last-child > span {
  color: var(--auth-primary);
}

.auth-brand-light {
  align-self: flex-start;
  color: #fff;
}

.auth-brand-light > span:last-child > span {
  color: #9184ff;
}

.auth-brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #fff;
  background: var(--auth-primary);
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .2);
}

.auth-brand-mark svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.1;
}

.auth-story-copy {
  position: relative;
  z-index: 2;
  width: min(100%, 570px);
  margin-block: auto;
  padding-block: 80px;
}

.auth-story-kicker,
.auth-heading > span {
  display: block;
  margin-bottom: 17px;
  color: #aaa0ff;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.auth-story h2 {
  max-width: 540px;
  margin: 0 0 24px;
  color: #fff;
  font-size: clamp(2.5rem, 4vw, 4.45rem);
  letter-spacing: -.055em;
  line-height: .98;
}

.auth-story-copy > p {
  max-width: 520px;
  margin: 0;
  color: #b5c0d2;
  font-size: 1.06rem;
}

.auth-story ul {
  display: grid;
  padding: 0;
  margin: 36px 0 0;
  gap: 14px;
  list-style: none;
}

.auth-story li {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #e8edf5;
  font-size: .92rem;
}

.auth-story li span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  color: #53dfb2;
  background: rgba(83, 223, 178, .12);
  border-radius: 50%;
  font-size: .75rem;
  font-weight: 900;
}

.auth-flow {
  position: relative;
  z-index: 2;
  display: grid;
  padding: 16px;
  align-items: center;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 8px;
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 18px;
  backdrop-filter: blur(10px);
}

.auth-flow div {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
}

.auth-flow b {
  display: grid;
  width: 29px;
  height: 29px;
  flex: 0 0 29px;
  place-items: center;
  color: #fff;
  background: rgba(145, 132, 255, .2);
  border-radius: 9px;
  font-size: .72rem;
}

.auth-flow span {
  overflow: hidden;
  color: #d6deea;
  font-size: .7rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-flow i {
  color: #69768d;
  font-style: normal;
}

.auth-panel {
  display: grid;
  min-height: 100vh;
  padding: 64px clamp(28px, 7vw, 110px);
  place-items: center;
  background:
    radial-gradient(circle at 90% 0, rgba(235, 232, 255, .8), transparent 28%),
    #fff;
}

.auth-card {
  width: min(100%, 510px);
}

.auth-mobile-head {
  display: flex;
  margin-bottom: 58px;
  align-items: center;
  justify-content: flex-end;
}

.auth-head-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.language-switcher {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  background: #f1f3f8;
  border: 1px solid var(--auth-line);
  border-radius: 999px;
}

.language-switcher a {
  display: inline-flex;
  min-width: 39px;
  min-height: 32px;
  padding: 4px 7px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--auth-muted);
  border-radius: 999px;
  font-size: .66rem;
  text-decoration: none;
}

.language-switcher a[aria-current="true"] {
  color: #fff;
  background: var(--auth-ink);
}

.language-switcher a span {
  font-size: .8rem;
}

.auth-mobile-head .auth-brand {
  display: none;
}

.auth-back {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--auth-muted);
  font-size: .84rem;
  font-weight: 700;
  text-underline-offset: 4px;
}

.auth-back:hover {
  color: var(--auth-primary-dark);
}

.auth-heading {
  margin-bottom: 31px;
}

.auth-heading > span {
  color: var(--auth-primary-dark);
}

.auth-heading h1 {
  margin: 0 0 13px;
  color: var(--auth-ink);
  font-size: clamp(2rem, 3vw, 2.75rem);
  letter-spacing: -.045em;
  line-height: 1.05;
}

.auth-heading p {
  margin: 0;
  color: var(--auth-muted);
  font-size: .98rem;
}

.auth-alert {
  display: grid;
  padding: 13px 14px;
  margin-bottom: 22px;
  align-items: start;
  grid-template-columns: 25px 1fr;
  gap: 10px;
  border: 1px solid var(--auth-line);
  border-radius: 12px;
  font-size: .86rem;
}

.auth-alert > span {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border-radius: 50%;
  font-size: .75rem;
  font-weight: 900;
}

.auth-alert a {
  font-weight: 750;
  text-underline-offset: 3px;
}

.auth-alert-success {
  color: #075f43;
  background: #edfbf6;
  border-color: #bee9d9;
}

.auth-alert-success > span {
  color: #fff;
  background: var(--auth-success);
}

.auth-alert-error {
  color: #8f1d2d;
  background: #fff3f4;
  border-color: #f1c6cc;
}

.auth-alert-error > span {
  color: #fff;
  background: var(--auth-error);
}

.auth-alert-info {
  color: #2d4d7c;
  background: #f0f6ff;
  border-color: #cbdcf6;
}

.auth-alert-info > span {
  color: #fff;
  background: #2f6db5;
}

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

.auth-fields-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

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

.auth-field label {
  color: var(--auth-text);
  font-size: .86rem;
  font-weight: 740;
}

.auth-field input {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  color: var(--auth-ink);
  background: #fff;
  border: 1px solid #cbd4e1;
  border-radius: 12px;
  outline: 0;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.auth-field input:hover {
  border-color: #9ba8bb;
}

.auth-field input:focus {
  background: #fff;
  border-color: #6b59dd;
  box-shadow: 0 0 0 4px rgba(90, 70, 214, .12);
}

.auth-field input::placeholder {
  color: #8995a8;
}

.auth-hint {
  margin: -2px 0 0;
  color: var(--auth-muted);
  font-size: .75rem;
}

.auth-button,
.google-button {
  display: inline-flex;
  width: 100%;
  min-height: 52px;
  padding: 12px 18px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  border-radius: 12px;
  cursor: pointer;
  font-size: .92rem;
  font-weight: 760;
  text-align: center;
  text-decoration: none;
}

.auth-button {
  margin-top: 3px;
  color: #fff;
  background: var(--auth-primary);
  border: 1px solid var(--auth-primary);
  box-shadow: 0 10px 22px rgba(90, 70, 214, .2);
  transition: background .16s ease, transform .16s ease, box-shadow .16s ease;
}

.auth-button:hover {
  background: var(--auth-primary-dark);
  box-shadow: 0 13px 28px rgba(73, 52, 190, .25);
  transform: translateY(-1px);
}

.google-button {
  color: #202124;
  background: #fff;
  border: 1px solid #cbd4e1;
  transition: background .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.google-button:hover {
  background: #f8faff;
  border-color: #aab6c8;
  box-shadow: 0 7px 18px rgba(19, 29, 49, .08);
}

.google-button svg {
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
}

.auth-divider {
  display: grid;
  margin: 24px 0;
  align-items: center;
  grid-template-columns: 1fr auto 1fr;
  gap: 13px;
  color: var(--auth-muted);
  font-size: .74rem;
  text-transform: uppercase;
}

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

.auth-links {
  display: flex;
  margin-top: 23px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--auth-muted);
  font-size: .82rem;
}

.auth-links a,
.auth-inline-link {
  color: var(--auth-primary-dark);
  font-weight: 730;
  text-underline-offset: 4px;
}

.auth-links a:hover,
.auth-inline-link:hover {
  color: #311f9a;
}

.auth-meta {
  padding: 13px 15px;
  margin: 21px 0 0;
  color: var(--auth-muted);
  background: var(--auth-soft);
  border: 1px solid var(--auth-line);
  border-radius: 11px;
  font-size: .76rem;
}

.auth-security {
  margin: 34px 0 0;
  color: #748096;
  font-size: .7rem;
  text-align: center;
}

.auth-security span {
  margin-right: 5px;
  color: var(--auth-success);
}

@media (max-width: 1000px) {
  .auth-shell {
    grid-template-columns: minmax(340px, .75fr) minmax(500px, 1.25fr);
  }

  .auth-story {
    padding-inline: 38px;
  }

  .auth-story h2 {
    font-size: 3rem;
  }

  .auth-flow span {
    display: none;
  }
}

@media (max-width: 780px) {
  .auth-shell {
    display: block;
  }

  .auth-story {
    display: none;
  }

  .auth-panel {
    min-height: 100vh;
    padding: 28px 22px 42px;
    align-items: start;
  }

  .auth-card {
    margin-inline: auto;
  }

  .auth-mobile-head {
    margin-bottom: 58px;
    justify-content: space-between;
    gap: 20px;
  }

  .auth-mobile-head .auth-brand {
    display: inline-flex;
  }
}

@media (max-width: 520px) {
  .auth-panel {
    padding-inline: 17px;
  }

  .auth-mobile-head {
    margin-bottom: 42px;
  }

  .auth-back {
    font-size: .78rem;
  }

  .auth-head-actions {
    gap: 9px;
  }

  .language-switcher a {
    min-width: 34px;
  }

  .language-switcher a span {
    display: none;
  }

  .auth-heading h1 {
    font-size: 2rem;
  }

  .auth-fields-two {
    grid-template-columns: 1fr;
  }

  .auth-links {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
.auth-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 14px;
  margin-top: 12px;
  font-size: 12px;
}
.auth-legal a { color: #64748b; }
.legal-acceptance-form { gap: 12px; }
.legal-check {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #dbe2ec;
  border-radius: 10px;
  color: #334155;
  background: #f8fafc;
  font-size: 14px;
  line-height: 1.45;
}
.legal-check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: #1769e0; }
.legal-check a { font-weight: 800; }
