:root {
  --al-violet: #5a00ff;
  --al-violet-deep: #4700cc;
  --al-navy: #13093f;
  --al-gold: #ffc93d;
  --al-hot: #e92ac7;
  --al-candy: #ff8ad6;
  --al-muted: #6b6485;
  --al-line: #e7e2f3;
  --al-field: #f5f2fb;
  --al-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

html,
body { background: #fff; color: var(--al-navy); }

.auth-form-section { background: #fff; }
.auth-form-section::before,
.auth-form-section::after { display: none; }

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--al-navy);
  background: #f3f0f9;
  font-size: 0.86rem;
  font-weight: 600;
}
.back-btn:hover { color: var(--al-navy); background: #ebe6f5; transform: none; }
.back-btn i { font-size: 0.8rem; }

.auth-header { margin-bottom: 30px; }
.auth-header .logo { margin-bottom: 0; }
.logo-img { width: 150px; }

.auth-subtitle {
  margin-top: 26px;
  color: var(--al-navy);
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.18;
}

.auth-form { gap: 14px; }
.btn-google,
.btn-submit,
.toggle-password { font-family: inherit; }

.btn-google {
  min-height: 56px;
  border: 1.5px solid var(--al-line);
  border-radius: 999px;
  background: #fff;
  color: var(--al-navy);
  font-size: 0.98rem;
  box-shadow: none;
}
.btn-google:hover {
  background: #faf8fe;
  border-color: #d4c8f5;
  box-shadow: none;
  transform: none;
}

.auth-divider { color: #9a93b3; font-size: 0.82rem; }
.auth-divider::before,
.auth-divider::after { border-color: var(--al-line); }

.input-group input,
.auth-inline-form input {
  min-height: 58px;
  padding: 20px 18px 8px;
  border: 1.5px solid transparent;
  border-radius: 18px;
  background: var(--al-field);
  color: var(--al-navy);
  font-size: 16px;
  font-weight: 500;
}
.input-group input:focus,
.input-group input:not(:placeholder-shown) {
  background: #fff;
  border-color: var(--al-violet);
  box-shadow: 0 0 0 4px rgba(90, 0, 255, 0.1);
}
.input-group label { left: 18px; color: #8a83a3; font-size: 15px; }
.input-group input:focus ~ label,
.input-group input:not(:placeholder-shown) ~ label { top: 13px; color: var(--al-violet); font-size: 0.72rem; }
.toggle-password { right: 14px; color: #8a83a3; }

.form-options { font-size: 0.86rem; }
.remember-me { color: var(--al-muted); }
.forgot-password,
.switch-link { color: var(--al-violet); }

.btn-submit {
  min-height: 56px;
  margin-top: 6px;
  border-radius: 999px;
  background: var(--al-violet);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 14px 26px -16px rgba(90, 0, 255, 0.7);
}
.btn-submit:hover {
  background: var(--al-violet-deep);
  box-shadow: 0 14px 26px -16px rgba(90, 0, 255, 0.7);
  transform: none;
}
.btn-submit:active { transform: scale(0.985); }
.btn-submit.btn-outline {
  border: 1.5px solid var(--al-line);
  background: #fff;
  color: var(--al-navy);
  box-shadow: none;
}
.btn-submit.btn-outline:hover { border-color: #d4c8f5; background: #faf8fe; color: var(--al-navy); box-shadow: none; }

.auth-legal-consents,
.auth-provider-hint,
.verification-actions .hint {
  border: 0;
  border-radius: 18px;
  background: var(--al-field);
}
.auth-legal-check { color: var(--al-navy); }
.auth-legal-check a,
.auth-legal-hint i { color: var(--al-violet); }
.auth-legal-hint { border-top-color: var(--al-line); }
.auth-legal-consents.is-error { background: #fff1f3; box-shadow: inset 0 0 0 1.5px #fda4af; }

.alert { border-radius: 16px; }

.auth-switch { color: var(--al-muted); }
.switch-link { text-decoration-thickness: 2px; }

.icon-wrapper {
  width: 72px;
  height: 72px;
  border-radius: 24px;
  color: var(--al-navy);
  background: var(--al-gold);
  font-size: 1.8rem;
  animation: none;
  transform: rotate(-4deg);
}
.verification-screen h3 { color: var(--al-navy); font-size: 1.45rem; font-weight: 800; letter-spacing: -0.03em; }
.verification-screen p { color: var(--al-muted); }

.auth-banner-section {
  background: var(--al-violet);
  padding: clamp(40px, 6vw, 96px);
}
.auth-banner-section::before,
.auth-banner-section::after { display: none; }

.auth-doodle {
  position: absolute;
  z-index: 0;
  height: auto;
  fill: none;
  stroke: var(--al-hot);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.auth-doodle--one { top: 6%; right: 8%; width: clamp(80px, 8vw, 118px); transform: rotate(-12deg); }
.auth-doodle--two { right: 6%; bottom: 9%; width: clamp(120px, 12vw, 170px); stroke: var(--al-gold); transform: rotate(8deg); }

.banner-content { max-width: 520px; }
.banner-content::before { content: none; display: none; }
.banner-content h2 {
  margin-bottom: 18px;
  color: #fff;
  font-size: clamp(2.3rem, 3.8vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.08;
}
.banner-content h2 span { color: var(--al-gold); }
.banner-content p {
  max-width: 30em;
  margin-bottom: 44px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.08rem;
  line-height: 1.6;
  opacity: 1;
}

.auth-art { position: relative; width: min(360px, 100%); padding: 26px 0 38px; }
.auth-art-stage {
  position: absolute;
  inset: 0 18px 12px 30px;
  border-radius: 36px;
  background: var(--al-gold);
  transform: rotate(-5deg);
}
.auth-art-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 84%;
  margin: 0 auto;
  padding: 26px 18px 20px;
  border-radius: 28px;
  background: #fff;
  color: var(--al-navy);
  box-shadow: 0 30px 60px -30px rgba(19, 9, 63, 0.6);
  transform: rotate(2deg);
}
.auth-art-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #e9e1ff center / cover no-repeat;
}
.auth-art-card strong { font-size: 1.05rem; font-weight: 800; letter-spacing: -0.02em; }
.auth-art-card small { margin-top: -8px; color: var(--al-muted); font-size: 0.8rem; font-weight: 600; }
.auth-art-link {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
}
.auth-art-link i { font-size: 0.85rem; }
.auth-art-link--gold { background: var(--al-gold); color: var(--al-navy); }
.auth-art-link--pink { background: var(--al-candy); color: var(--al-navy); }
.auth-art-link--navy { background: var(--al-navy); color: #fff; }
.auth-art-toast {
  position: absolute;
  right: -34px;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 12px 12px;
  border-radius: 20px;
  background: #fff;
  color: var(--al-navy);
  box-shadow: 0 20px 40px -20px rgba(19, 9, 63, 0.55);
  transform: rotate(-3deg);
}
.auth-art-toast > i {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: #43dfb0;
  color: var(--al-navy);
}
.auth-art-toast b { display: block; font-size: 0.86rem; }
.auth-art-toast small { display: block; color: var(--al-muted); font-size: 0.76rem; font-weight: 600; }

@media (max-width: 900px) {
  body { background: var(--al-violet); }
  .auth-split-layout { background: var(--al-violet); }
  .auth-form-section {
    position: relative;
    padding: 76px 16px max(28px, env(safe-area-inset-bottom));
    background: var(--al-violet);
    overflow: hidden;
  }
  .auth-form-section::before {
    content: "";
    display: block;
    position: absolute;
    top: 18px;
    right: -18px;
    width: 96px;
    height: 70px;
    border: 0;
    border-radius: 0;
    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.9;
  }

  .back-btn {
    top: 18px;
    left: 16px;
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
  }
  .back-btn:hover { color: #fff; background: rgba(255, 255, 255, 0.24); }

  .auth-header { margin-bottom: 22px; padding: 0 6px; text-align: left; }
  .auth-header .logo-img { width: 118px; filter: brightness(0) invert(1); }
  .auth-subtitle { margin-top: 18px; color: #fff; font-size: 1.75rem; }

  .forms-wrapper {
    padding: 22px 18px 24px;
    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(--al-gold); }
  .alert { margin-bottom: 14px; }
}

@media (max-width: 380px) {
  .auth-subtitle { font-size: 1.5rem; }
  .form-options { flex-wrap: wrap; }
}

.auth-form-section { overflow: hidden; overflow: clip; }

@media (max-width: 560px) {
  .auth-form-section { padding: 70px 16px max(20px, env(safe-area-inset-bottom)); }
  .auth-form-section::before { display: none; }

  .back-btn { top: 16px; left: 16px; min-height: 38px; }

  .auth-form-section > .auth-container { position: static; }
  .auth-header { margin-bottom: 14px; padding: 0 4px; }
  .auth-header .logo {
    position: absolute;
    top: 22px;
    right: 18px;
    z-index: 2;
    margin: 0;
  }
  .auth-header .logo-img { width: 96px; height: auto; }
  .auth-subtitle { margin-top: 0; font-size: 1.5rem; line-height: 1.15; text-wrap: balance; }

  .forms-wrapper { padding: 16px 16px 18px; border-radius: 26px; }
  .auth-form { gap: 10px; }
  .btn-google { min-height: 50px; padding: 10px 16px; border-radius: 999px; }
  .auth-divider { margin: 2px 0; }
  .input-group input { min-height: 54px; padding-top: 18px; padding-bottom: 8px; }
  .form-options { margin-top: 0; }

  .auth-legal-consents { margin: 2px 0 4px; padding: 10px 12px; border-radius: 16px; }
  .auth-legal-check { margin-bottom: 6px; font-size: 13.5px; line-height: 1.4; }
  .auth-legal-hint { margin-top: 8px; padding-top: 8px; font-size: 12px; }

  .btn-submit { min-height: 52px; margin-top: 2px; }
  .auth-switch { margin-top: 14px; }
}

@media (max-width: 560px) and (max-height: 720px) {
  .auth-subtitle { font-size: 1.35rem; }
  .auth-divider span { font-size: 0.78rem; }
}
