:root {
  --as-violet: #5a00ff;
  --as-violet-dark: #4700cc;
  --as-navy: #13093f;
  --as-gold: #ffc93d;
  --as-muted: #6b6485;
  --as-line: #e7e2f3;
  --as-field: #f5f2fb;
  --as-ring: rgba(90, 0, 255, 0.12);
  --as-font: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --as-display: 'Inter Tight', 'Figtree', system-ui, sans-serif;
}

html,
body { background: #fff; }

body,
.auth-form-section,
.auth-form-section :is(button, input, a, p, span, label, h3, small, strong) { font-family: var(--as-font); }

.auth-form-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  overflow: hidden;
  overflow: clip;
}

.auth-form-section::after { display: none !important; }
.auth-form-section::before { display: none; }

.auth-form-section:has(#loginForm) > .back-btn { display: none; }

.auth-form-section > .back-btn {
  top: 22px;
  right: 22px;
  left: auto;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: #f3f0f9;
  color: var(--as-navy);
  font-size: 14px;
  font-weight: 600;
}

.auth-form-section > .auth-container {
  position: static;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.auth-header {
  margin: 0 0 28px;
  padding: 0;
  text-align: center;
}

.auth-header .logo {
  position: absolute;
  top: 26px;
  left: 28px;
  z-index: 2;
  margin: 0;
}

.auth-header .logo-img {
  display: block;
  width: 112px;
  height: auto;
}

.auth-subtitle {
  margin: 0;
  color: var(--as-navy);
  font-family: var(--as-display) !important;
  font-size: 44px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.auth-lead {
  margin: 10px 0 0;
  color: var(--as-muted);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.45;
}

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

.forms-wrapper {
  min-height: 0 !important;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.auth-form { gap: 12px; }

.auth-stage {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#registerForm[data-stage="email"] .auth-stage--details,
#registerForm[data-stage="details"] .auth-stage--email { display: none; }

.input-group { position: relative; }

.input-group input {
  width: 100%;
  min-height: 60px;
  height: 60px;
  padding: 22px 18px 8px;
  border: 1.5px solid transparent;
  border-radius: 18px;
  background: var(--as-field);
  color: var(--as-navy);
  font-size: 16px !important;
  font-weight: 500;
  box-shadow: none;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.input-group input:focus,
.input-group input:not(:placeholder-shown) {
  border-color: transparent;
  background: var(--as-field);
  box-shadow: none;
}

.input-group input:focus {
  border-color: var(--as-violet);
  background: #fff;
  box-shadow: 0 0 0 4px var(--as-ring);
}

.input-group label {
  left: 18px;
  color: #8a83a3;
  font-size: 16px;
  font-weight: 500;
}

.input-group input:focus ~ label,
.input-group input:not(:placeholder-shown) ~ label {
  top: 14px;
  color: #8a83a3;
  font-size: 12.5px;
  font-weight: 600;
}

.input-group input:focus ~ label { color: var(--as-violet); }

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

.toggle-password { right: 14px; color: #8a83a3; font-size: 17px; }

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 58px;
  margin: 2px 0 0;
  border: 0;
  border-radius: 999px;
  background: var(--as-violet);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.005em;
  box-shadow: 0 14px 26px -16px rgba(90, 0, 255, 0.7);
  transform: none;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.15s ease;
}

.btn-submit:hover { background: var(--as-violet-dark); box-shadow: 0 14px 26px -16px rgba(90, 0, 255, 0.7); transform: none; }
.btn-submit:active { transform: scale(0.985); }

.btn-submit:disabled,
.btn-submit:disabled:hover {
  background: #e9e4f5;
  color: #a39cbb;
  box-shadow: none;
  cursor: default;
  transform: none;
}

.btn-submit.btn-outline {
  border: 1.5px solid var(--as-line);
  background: #fff;
  color: var(--as-navy);
  box-shadow: none;
}

.btn-submit.btn-outline:hover { border-color: #d4c8f5; background: #faf8fe; color: var(--as-navy); }

.btn-google {
  min-height: 58px;
  padding: 0 20px;
  border: 1.5px solid var(--as-line);
  border-radius: 999px;
  background: #fff;
  color: var(--as-navy);
  font-size: 17px;
  font-weight: 600;
  box-shadow: none;
  transform: none;
}

.btn-google:hover { background: #faf8fe; border-color: #d4c8f5; transform: none; }

.auth-divider {
  justify-content: center;
  margin: 10px 0;
  color: #9a93b3;
  font-size: 15px;
}

.auth-divider::before,
.auth-divider::after { display: none; }
.auth-divider span { padding: 0; font-weight: 500; }

.forgot-password {
  align-self: center;
  margin: 4px 0 0;
  color: var(--as-violet);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.forgot-password:hover { text-decoration: underline; }

.auth-legal-note {
  margin: 6px 4px 0;
  color: var(--as-muted);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  text-wrap: pretty;
}

.auth-legal-note a {
  color: var(--as-navy);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-email-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--as-field);
  color: var(--as-navy);
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.auth-email-chip i { color: #8a83a3; font-size: 15px; }

.auth-email-chip-text {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.auth-email-chip-edit { flex: 0 0 auto; color: var(--as-violet); font-weight: 700; }

.auth-switch {
  margin: 24px 0 0;
  color: var(--as-muted);
  font-size: 15.5px;
  text-align: center;
}

.auth-switch .switch-link {
  margin-left: 4px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--as-violet);
  font-size: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.alert { margin-bottom: 14px; border-radius: 16px; font-size: 14.5px; }

.verification-screen { padding: 0; }
.verification-screen h3 { display: none; }

.verification-screen .icon-wrapper {
  width: 68px;
  height: 68px;
  margin: 0 auto 14px;
  border-radius: 22px;
  background: var(--as-gold);
  color: var(--as-navy);
  font-size: 1.6rem;
  transform: rotate(-4deg);
}

.verification-screen p { margin-bottom: 18px; color: var(--as-muted); font-size: 15.5px; }
.verification-screen strong { color: var(--as-navy); }
.auth-inline-form { display: flex; flex-direction: column; gap: 12px; }

@media (max-width: 900px) {
  body,
  .auth-split-layout { background: var(--as-violet); }

  .auth-form-section {
    min-height: 100svh;
    padding: 108px 16px max(28px, env(safe-area-inset-bottom));
    background: var(--as-violet);
  }

  .auth-form-section:has(#loginForm)::before {
    content: "";
    display: block;
    position: absolute;
    top: 20px;
    right: -14px;
    width: 92px;
    height: 64px;
    background: center / contain no-repeat
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 80' fill='none' stroke='%23ffc93d' stroke-width='7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 47c17-42 35 36 54-4s36 31 55-7 32 21 55-11'/%3E%3C/svg%3E");
    opacity: 0.95;
    pointer-events: none;
  }

  .auth-form-section > .back-btn { background: rgba(255, 255, 255, 0.16); color: #fff; }

  .auth-header .logo { top: 24px; left: 22px; }
  .auth-header .logo-img { width: 104px; filter: brightness(0) invert(1); }

  .auth-header { margin-bottom: 22px; padding: 0 6px; }
  .auth-subtitle { color: #fff; }
  .auth-lead { color: rgba(255, 255, 255, 0.82); }

  .forms-wrapper {
    padding: 22px 18px;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 30px 60px -34px rgba(19, 9, 63, 0.7);
  }

  .auth-switch { color: rgba(255, 255, 255, 0.82); }
  .auth-switch .switch-link { color: var(--as-gold); }
}

@media (max-width: 560px) {
  .auth-form-section { padding-top: 100px; }
  .auth-subtitle { font-size: 38px; }
  .auth-lead { font-size: 16.5px; }
}

@media (max-width: 560px) and (max-height: 720px) {
  .auth-form-section { padding-top: 86px; }
  .auth-subtitle { font-size: 34px; }
  .auth-header { margin-bottom: 18px; }
}

@media (min-width: 901px) {
  .auth-form-section {
    justify-content: center;
    min-height: 100dvh;
    padding: 110px 48px 64px;
  }

  .auth-header .logo { top: 30px; left: 40px; }
  .auth-header .logo-img { width: 144px; max-width: none; }

  .auth-form-section:has(#loginForm) > .back-btn { display: inline-flex; }
  .auth-form-section > .back-btn { top: 29px; right: 36px; }
}

.banner-content { max-width: 560px; }

.banner-content h2 {
  font-family: 'Poppins', var(--as-font) !important;
  font-size: clamp(2.3rem, 3.5vw, 3.3rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.028em;
  text-wrap: wrap;
}

.banner-content h2 span { font-family: inherit !important; font-weight: 800; white-space: nowrap; }
