html,
body.auth {
  --auth-brand: #2A3246;
  --auth-surface: #FFFFFF;
  --auth-text: #2A3246;
  --auth-field: #F3F4F7;
  --auth-border: #D8DCE6;
  --auth-divider: #EBEDF2;
  --auth-muted: #7E8593;
  --auth-error: #C42D3D;
  --auth-ok: #2b7a3b;
  --auth-err-bg: #FFE9EC;
  --auth-accent: #FF5667;
  --auth-accent-hover: #E8394A;
  --auth-ok-bg: #E8FDF3;
  --auth-ok-border: #A8D18D;
  --auth-info-bg: #ECF3FB;
  --auth-info-border: #97B8DD;
}

html[data-theme="dark"],
[data-theme="dark"] body.auth {
  --auth-brand: #151A28;
  --auth-surface: #1E2436;
  --auth-text: #EBEDF2;
  --auth-field: #262D42;
  --auth-border: #2E3650;
  --auth-divider: #2E3650;
  --auth-muted: #9AA2B5;
  --auth-error: #FF8A96;
  --auth-ok: #A8D18D;
  --auth-err-bg: rgba(255, 86, 103, .12);
  --auth-ok-bg: rgba(168, 209, 141, .14);
  --auth-info-bg: rgba(151, 184, 221, .14);
}

html[data-theme="dark"],
html[data-theme="dark"] body.auth {
  background-color: var(--auth-surface) !important;
}

body.auth {
  margin: 0;
  background: var(--auth-surface);
  color: var(--auth-text);
  font-family: 'Montserrat', sans-serif;
}

body.auth,
body.auth * {
  box-sizing: border-box;
}

body.auth a:focus-visible,
body.auth button:focus-visible {
  outline: 2px solid var(--auth-accent);
  outline-offset: 2px;
}

.auth-h1 {
  margin: 0;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800;
  font-size: 40px;
  line-height: 1.05;
  color: var(--auth-text);
}

.auth-h1--balance {
  text-wrap: balance;
}

.auth-intro {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  text-wrap: pretty;
}

.auth-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.auth-heading {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-label,
.auth-label-row label {
  font-size: 14px;
  font-weight: 700;
  color: var(--auth-text);
}

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

.auth-input {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 52px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1.5px solid var(--auth-border);
  background: var(--auth-field);
}

.auth-input:has(.auth-reveal) {
  padding: 0 6px 0 14px;
}

.auth-input:focus-within {
  border-color: var(--auth-accent);
  background: var(--auth-surface);
}

.auth-input.is-error,
.auth-otp.is-error {
  border-color: var(--auth-accent);
}

.auth-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: var(--auth-muted);
}

.auth-input input,
.auth-otp {
  border: 0;
  outline: none;
  background: transparent;
  font-family: 'Montserrat', sans-serif;
  color: var(--auth-text);
}

.auth-input input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0;
  font-weight: 500;
  font-size: 15px;
}

.auth-input input::placeholder,
.auth-otp::placeholder {
  color: #9AA2B5;
}

.auth-input input:-webkit-autofill,
.auth-input input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--auth-text);
  caret-color: var(--auth-text);
  box-shadow: 0 0 0 1000px var(--auth-field) inset;
}

.auth-input:focus-within input:-webkit-autofill {
  box-shadow: 0 0 0 1000px var(--auth-surface) inset;
}

.auth-reveal {
  border: 0;
  background: transparent;
  padding: 8px 10px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: var(--auth-text);
  cursor: pointer;
}

.auth-otp {
  display: block;
  width: 100%;
  height: 60px;
  padding: 0 16px;
  border: 1.5px solid var(--auth-border);
  border-radius: 8px;
  background: var(--auth-field);
  text-align: center;
  font-weight: 600;
  font-size: 26px;
  letter-spacing: .4em;
  font-variant-numeric: tabular-nums;
}

.auth-otp:focus {
  border-color: var(--auth-accent);
  background: var(--auth-surface);
}

.auth-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  cursor: pointer;
}

.auth-check input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--auth-accent);
}

.auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 54px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  background: var(--auth-accent);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: .5px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}

.auth-btn:hover {
  background: var(--auth-accent-hover);
  color: #fff;
}

.auth-btn--signin {
  margin-top: 4px;
}

.auth-btn--outline {
  background: transparent;
  border: 1.5px solid var(--auth-border);
  color: var(--auth-text);
}

.auth-btn--outline:hover {
  background: transparent;
  border-color: var(--auth-accent);
  color: var(--auth-accent);
}

.auth-btn--text {
  width: auto;
  height: auto;
  align-self: center;
  padding: 4px;
  background: none;
  border: 0;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--auth-text);
}

.auth-btn--text:hover {
  background: none;
  color: var(--auth-accent);
}

.auth-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--auth-accent);
  text-decoration: none;
}

button.auth-link {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

.auth-link:hover {
  color: var(--auth-accent-hover);
  text-decoration: underline;
}

.auth-link--plain {
  color: var(--auth-text);
}

.auth-link--plain:hover {
  color: var(--auth-accent);
}

.auth-link--center,
.auth-back {
  align-self: center;
}

.auth-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 700;
}

.auth-error {
  margin-top: -8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--auth-error);
}

.auth-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--auth-text);
}

.auth-notice-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 50%;
}

.auth-notice--ok {
  background: var(--auth-ok-bg);
  border-color: var(--auth-ok-border);
}

.auth-notice--ok .auth-notice-dot {
  background: var(--auth-ok-border);
}

.auth-notice--info {
  background: var(--auth-info-bg);
  border-color: var(--auth-info-border);
}

.auth-notice--info .auth-notice-dot {
  background: var(--auth-info-border);
}

.auth-notice--error {
  background: var(--auth-err-bg);
  border-color: #FF5667;
}

.auth-notice--error .auth-notice-dot {
  background: #FF5667;
}

.auth-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: #FF5667;
  color: #fff;
}

.auth-tile .auth-icon {
  width: 24px;
  height: 24px;
  color: #fff;
}

.auth-strength {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-strength-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-strength-track {
  flex: 1;
  height: 5px;
  overflow: hidden;
  border-radius: 3px;
  background: var(--auth-border);
}

.auth-strength-fill {
  height: 100%;
  width: 0;
  border-radius: 3px;
  transition: width .3s ease, background-color .3s ease;
}

.auth-strength-label {
  min-width: 44px;
  font-size: 12px;
  font-weight: 700;
  text-align: right;
}

.auth-strength-label.is-weak { color: #e8394a; }
.auth-strength-label.is-fair { color: #f0a500; }
.auth-strength-label.is-good { color: #2b7a3b; }
.auth-strength-label.is-strong { color: #1a5c2b; }

[data-theme="dark"] .auth-strength-label,
[data-theme="dark"] .auth-strength-label.is-weak,
[data-theme="dark"] .auth-strength-label.is-fair,
[data-theme="dark"] .auth-strength-label.is-good,
[data-theme="dark"] .auth-strength-label.is-strong {
  color: #EBEDF2;
}

.auth-reqs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 12.5px;
}

.auth-reqs li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--auth-muted);
}

.auth-reqs li.is-met {
  color: var(--auth-text);
}

.auth-reqs .auth-icon {
  width: 14px;
  height: 14px;
}

.auth-reqs .auth-req-met {
  display: none;
}

.auth-reqs li.is-met .auth-req-idle {
  display: none;
}

.auth-reqs li.is-met .auth-req-met {
  display: inline-flex;
}

.auth-reqs li.is-met .auth-icon {
  color: var(--auth-ok);
}

.auth--2a .auth-split {
  display: grid;
  grid-template-columns: 1fr 520px;
  min-height: 100vh;
}

.auth-brand,
.auth-main {
  min-width: 0;
}

.auth-brand {
  display: flex;
  flex-direction: column;
  gap: 36px;
  height: 100vh;
  padding: 48px 64px;
  overflow: hidden;
  position: sticky;
  top: 0;
  background: var(--auth-brand);
}

.auth-logo {
  display: block;
  width: 220px;
  height: auto;
}

.auth-hero {
  display: flex;
  flex-direction: column;
  gap: 36px;
  flex: 1;
  min-height: 0;
}

.auth-brand-copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.auth-eyebrow {
  margin: 0;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 2.5px;
  color: var(--auth-accent);
}

.auth-headline {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 64px;
  line-height: 1.04;
  letter-spacing: -1.5px;
}

.auth-word {
  display: inline-block;
  padding: 0 .2em;
  overflow: hidden;
  border-radius: 6px;
  background: #FF5667;
  color: #fff;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800;
  font-size: 69px;
  line-height: 1.08;
  white-space: nowrap;
  transform: rotate(-2deg);
}

.auth-word-text {
  display: inline-block;
  animation: yetIn .5s cubic-bezier(.2, .8, .2, 1);
}

.auth-stage {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
  min-height: 0;
}

.auth-photo {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  border-radius: 20px;
}

.auth-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

.auth-slide[hidden] {
  display: none;
}

.auth-chat {
  display: flex;
  box-sizing: border-box;
  padding: 14px;
  background: #FF5667;
}

.auth-chat-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
}

.auth-chat-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
  padding: 8px 12px;
  border-bottom: 1px solid #E6E8EE;
}

.auth-chat-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 13px;
  background: #FF5667;
  color: #fff;
  font-weight: 800;
  font-size: 10px;
}

.auth-chat-who {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.auth-chat-name {
  color: #2A3246;
  font-weight: 700;
  font-size: 12px;
}

.auth-chat-meta {
  color: #7E8593;
  font-weight: 600;
  font-size: 10px;
}

.auth-chat-event {
  flex: none;
  color: #FF5667;
  font-weight: 800;
  font-size: 9px;
  letter-spacing: 1px;
}

.auth-chat-msgs {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 10px 12px;
}

.auth-bubble {
  align-self: flex-start;
  max-width: 78%;
  margin: 0;
  padding: 7px 11px;
  border-radius: 14px 14px 14px 4px;
  background: #EFF1F5;
  color: #2A3246;
  font-weight: 500;
  font-size: 12px;
  line-height: 1.4;
}

.auth-bubble--out {
  align-self: flex-end;
  border-radius: 14px 14px 4px 14px;
  background: #2A3246;
  color: #fff;
}

.auth-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: .7;
}

.auth-arrow,
.auth-pause,
.auth-dot {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.auth-arrow,
.auth-pause {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
}

.auth-arrow:focus-visible,
.auth-pause:focus-visible,
.auth-dot:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.auth-pause {
  gap: 3px;
}

.auth-pause i {
  display: block;
  width: 2px;
  height: 9px;
  background: #fff;
}

.auth-pause.is-paused i {
  width: 0;
  height: 0;
  background: transparent;
  border-style: solid;
  border-width: 5px 0 5px 6px;
  border-color: transparent transparent transparent #fff;
}

.auth-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.auth-dot {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .3);
  transition: all .25s ease;
}

.auth-dot.is-active {
  width: 16px;
  background: #FF5667;
}

.auth-main {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 48px 56px 32px;
  background: var(--auth-surface);
}

.auth-form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}

.auth-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--auth-divider);
  font-size: 13px;
}

.auth-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--auth-text);
  font-weight: 700;
  text-decoration: none;
}

.auth-status .auth-icon {
  width: 16px;
  height: 16px;
  color: var(--auth-accent);
}

.auth-copy {
  color: var(--auth-muted);
}

@keyframes yetIn {
  from { transform: translateY(55%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-word-text { animation: none; }
}

.auth--2b .auth-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: safe center;
  gap: 32px;
  min-height: 100vh;
  padding: 32px 16px;
  background: var(--auth-brand);
}

.auth--2b .auth-logo {
  width: 260px;
}

.auth--2b .auth-card {
  width: 460px;
  max-width: 100%;
  padding: 40px 40px 36px;
  border-radius: 20px;
  background: var(--auth-surface);
  color: var(--auth-text);
}

.auth--2b .auth-h1 {
  font-size: 36px;
}

.auth--2b .auth-foot {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 13px;
}

.auth--2b .auth-foot .auth-status {
  color: #fff;
}

.auth--2b .auth-foot .auth-copy {
  color: #B8BCC4;
}

.auth--1a .auth-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  min-height: 100vh;
}

.auth--1a .auth-brand {
  align-items: center;
  justify-content: center;
  height: auto;
  position: static;
  min-height: 280px;
  padding: 64px 48px;
}

.auth--1a .auth-logo {
  width: 100%;
  max-width: 380px;
}

.auth--1a .auth-main {
  padding: 40px 48px 32px;
}

.auth--1a .auth-form {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.auth--1a .auth-h1 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 28px;
  line-height: 1.2;
}

.auth--1a .auth-input,
.auth--1a .auth-btn {
  height: 50px;
  border-radius: 7px;
}

.auth--1a .auth-btn {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .08em;
  background: #2A3246;
}

.auth--1a .auth-btn:hover {
  background: #FF5667;
  color: #fff;
}

[data-theme="dark"] .auth--1a .auth-btn {
  background: var(--auth-accent);
}

[data-theme="dark"] .auth--1a .auth-btn:hover {
  background: var(--auth-accent-hover);
}

.auth--1a .auth-btn--outline,
[data-theme="dark"] .auth--1a .auth-btn--outline {
  background: transparent;
  color: var(--auth-text);
}

.auth--1a .auth-btn--outline:hover,
[data-theme="dark"] .auth--1a .auth-btn--outline:hover {
  background: transparent;
  border-color: var(--auth-accent);
  color: var(--auth-accent);
}

.auth--1a .auth-btn--text,
[data-theme="dark"] .auth--1a .auth-btn--text {
  height: auto;
  background: none;
  letter-spacing: 0;
  font-size: 13px;
  color: var(--auth-text);
}

.auth--1a .auth-btn--text:hover,
[data-theme="dark"] .auth--1a .auth-btn--text:hover {
  background: none;
  color: var(--auth-accent);
}

@media (max-width: 1024px) {
  .auth--2a .auth-split {
    grid-template-columns: 1fr;
    align-content: start;
  }

  .auth--2a .auth-brand {
    height: auto;
    position: static;
    padding: 20px 24px;
  }

  .auth--2a .auth-logo {
    width: 150px;
  }

  .auth--2a .auth-hero {
    display: none;
  }

  .auth--2a .auth-main {
    min-height: 0;
    padding: 32px 24px 24px;
  }

  .auth--2a .auth-form {
    flex: 0 0 auto;
    justify-content: flex-start;
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
  }
}

@media (max-height: 760px) and (min-width: 1025px) {
  .auth--2a .auth-headline { font-size: 52px; }
  .auth--2a .auth-word { font-size: 56px; }
  .auth--2a .auth-brand,
  .auth--2a .auth-hero { gap: 24px; }
}

@media (max-width: 839px) {
  .auth--1a .auth-brand {
    min-height: 160px;
    padding: 32px 24px;
  }

  .auth--1a .auth-logo {
    max-width: 240px;
  }
}

@media (max-width: 560px) {
  .auth-footer,
  .auth--2b .auth-foot {
    flex-wrap: wrap;
    gap: 12px;
  }

  .auth--2b .auth-foot {
    flex-direction: column;
    align-items: center;
  }

  .auth--2b .auth-card {
    padding: 28px 20px;
  }

  .auth--2b .auth-logo {
    width: 200px;
  }
}
