/* Bada Live Chat — Premium auth pages (login + register) */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --auth-bg: #030712;
  --auth-surface: rgba(15, 23, 42, 0.65);
  --auth-card: rgba(15, 23, 42, 0.82);
  --auth-border: rgba(148, 163, 184, 0.14);
  --auth-text: #f8fafc;
  --auth-muted: #94a3b8;
  --auth-accent: #6366f1;
  --auth-accent-2: #22d3ee;
  --auth-glow: rgba(99, 102, 241, 0.5);
  --auth-agent: #06b6d4;
  --auth-agent-glow: rgba(6, 182, 212, 0.45);
}

.bada-auth {
  margin: 0;
  min-height: 100vh;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  background: var(--auth-bg);
  color: var(--auth-text);
  overflow-x: hidden;
}

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

.bada-auth a {
  color: var(--auth-accent-2);
  text-decoration: none;
  transition: color 0.2s, opacity 0.2s;
}

.bada-auth a:hover {
  color: #67e8f9;
}

/* Ambient */
.bada-auth-ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bada-auth-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  animation: auth-orb-float 20s ease-in-out infinite;
}

.bada-auth-orb-1 {
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, #4f46e5 0%, transparent 70%);
  top: -140px;
  left: -120px;
}

.bada-auth-orb-2 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, #0891b2 0%, transparent 70%);
  bottom: -80px;
  right: -60px;
  animation-delay: -7s;
}

.bada-auth-orb-3 {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, #7c3aed 0%, transparent 70%);
  top: 40%;
  left: 35%;
  animation-delay: -14s;
}

.bada-auth.theme-agent .bada-auth-orb-1 {
  background: radial-gradient(circle, #0891b2 0%, transparent 70%);
}

.bada-auth.theme-agent .bada-auth-orb-3 {
  background: radial-gradient(circle, #0284c7 0%, transparent 70%);
}

@keyframes auth-orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(35px, -45px) scale(1.06); }
  66% { transform: translate(-25px, 30px) scale(0.94); }
}

.bada-auth-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, black, transparent);
  pointer-events: none;
  z-index: 0;
}

#auth-particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.bada-auth-wrap {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Nav */
.bada-auth-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  animation: auth-fade-down 0.7s ease both;
}

.bada-auth-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--auth-text);
}

.bada-auth-logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--auth-accent), var(--auth-accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 24px var(--auth-glow);
  animation: auth-pulse-glow 3s ease-in-out infinite;
}

.theme-agent .bada-auth-logo-mark {
  background: linear-gradient(135deg, #06b6d4, #0284c7);
  box-shadow: 0 0 24px var(--auth-agent-glow);
}

.bada-auth-logo-mark svg {
  width: 20px;
  height: 20px;
  fill: white;
}

.bada-auth-nav-link {
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--auth-border);
  background: rgba(255,255,255,0.04);
  color: var(--auth-muted);
  transition: all 0.25s;
}

.bada-auth-nav-link:hover {
  color: var(--auth-text);
  border-color: rgba(99, 102, 241, 0.4);
  background: rgba(99, 102, 241, 0.12);
  transform: translateY(-1px);
}

/* Main layout */
.bada-auth-main {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 1.5rem 3rem;
  width: 100%;
  align-items: center;
}

@media (min-width: 1024px) {
  .bada-auth-main {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 2rem 1.5rem 4rem;
  }
}

/* Hero / showcase */
.bada-auth-hero {
  display: none;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .bada-auth-hero {
    display: flex;
  }
}

.bada-auth-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--auth-accent-2);
  border: 1px solid rgba(34, 211, 238, 0.25);
  background: rgba(34, 211, 238, 0.08);
  width: fit-content;
  animation: auth-fade-up 0.6s ease 0.1s both;
}

.bada-auth-hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22d3ee;
  box-shadow: 0 0 10px #22d3ee;
  animation: auth-blink 2s ease infinite;
}

@keyframes auth-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.bada-auth-hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.03em;
  animation: auth-fade-up 0.7s ease 0.2s both;
}

.bada-auth-hero h1 span {
  background: linear-gradient(135deg, #a5b4fc, #22d3ee 60%, #6366f1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.bada-auth-hero p {
  color: var(--auth-muted);
  font-size: 1.05rem;
  line-height: 1.65;
  margin: 0;
  max-width: 420px;
  animation: auth-fade-up 0.7s ease 0.35s both;
}

.bada-auth-stats {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  animation: auth-fade-up 0.7s ease 0.5s both;
}

.bada-auth-stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.bada-auth-stat strong {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--auth-text);
}

.bada-auth-stat span {
  font-size: 0.8rem;
  color: var(--auth-muted);
}

/* Chat mockup */
.bada-auth-mockup {
  position: relative;
  margin-top: 0.5rem;
  animation: auth-fade-up 0.8s ease 0.65s both;
}

.bada-auth-mockup-card {
  border-radius: 20px;
  border: 1px solid var(--auth-border);
  background: var(--auth-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 1.25rem;
  box-shadow: 0 24px 80px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.06);
  overflow: hidden;
}

.bada-auth-mockup-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--auth-border);
  margin-bottom: 1rem;
}

.bada-auth-mockup-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

.bada-auth-mockup-meta strong {
  display: block;
  font-size: 0.9rem;
}

.bada-auth-mockup-meta span {
  font-size: 0.75rem;
  color: #4ade80;
}

.bada-auth-msg {
  max-width: 85%;
  padding: 0.65rem 0.9rem;
  border-radius: 14px;
  font-size: 0.85rem;
  line-height: 1.45;
  margin-bottom: 0.65rem;
  opacity: 0;
  transform: translateY(12px);
  animation: auth-msg-in 0.5s ease forwards;
}

.bada-auth-msg-visitor {
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(99, 102, 241, 0.25);
  margin-left: auto;
  border-bottom-right-radius: 4px;
}

.bada-auth-msg-agent {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--auth-border);
  border-bottom-left-radius: 4px;
}

.bada-auth-msg:nth-child(1) { animation-delay: 1s; }
.bada-auth-msg:nth-child(2) { animation-delay: 1.4s; }
.bada-auth-msg:nth-child(3) { animation-delay: 1.8s; }
.bada-auth-msg:nth-child(4) { animation-delay: 2.2s; }

@keyframes auth-msg-in {
  to { opacity: 1; transform: translateY(0); }
}

.bada-auth-float-chip {
  position: absolute;
  padding: 0.45rem 0.75rem;
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 600;
  border: 1px solid var(--auth-border);
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(8px);
  animation: auth-chip-float 4s ease-in-out infinite;
}

.bada-auth-float-chip-1 { top: -12px; right: 20px; animation-delay: 0s; }
.bada-auth-float-chip-2 { bottom: 30px; left: -16px; animation-delay: -2s; }

@keyframes auth-chip-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Form panel */
.bada-auth-panel {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  animation: auth-fade-up 0.7s ease 0.15s both;
}

@media (min-width: 1024px) {
  .bada-auth-panel {
    margin: 0 0 0 auto;
    max-width: 440px;
  }
}

.bada-auth-card {
  border-radius: 24px;
  border: 1px solid var(--auth-border);
  background: var(--auth-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 2rem;
  box-shadow: 0 32px 64px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.07);
  position: relative;
  overflow: hidden;
}

.bada-auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99,102,241,0.5), rgba(34,211,238,0.5), transparent);
}

.bada-auth-card-title {
  font-size: 1.65rem;
  font-weight: 800;
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
}

.bada-auth-card-sub {
  color: var(--auth-muted);
  font-size: 0.925rem;
  margin: 0 0 1.75rem;
}

/* Alerts */
.bada-auth-alert {
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
  animation: auth-shake 0.4s ease;
  border: 1px solid;
}

.bada-auth-alert-error {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

@keyframes auth-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

/* Form fields */
.bada-auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.bada-auth-field {
  position: relative;
  animation: auth-field-in 0.5s ease both;
}

.bada-auth-field:nth-child(1) { animation-delay: 0.1s; }
.bada-auth-field:nth-child(2) { animation-delay: 0.15s; }
.bada-auth-field:nth-child(3) { animation-delay: 0.2s; }
.bada-auth-field:nth-child(4) { animation-delay: 0.25s; }
.bada-auth-field:nth-child(5) { animation-delay: 0.3s; }
.bada-auth-field:nth-child(6) { animation-delay: 0.35s; }

@keyframes auth-field-in {
  from { opacity: 0; transform: translateX(16px); }
  to { opacity: 1; transform: translateX(0); }
}

.bada-auth-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--auth-muted);
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
}

.bada-auth-input-wrap {
  position: relative;
}

.bada-auth-input-wrap svg {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--auth-muted);
  pointer-events: none;
  transition: color 0.2s;
}

.bada-auth-input {
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 2.75rem;
  border-radius: 14px;
  border: 1px solid var(--auth-border);
  background: rgba(3, 7, 18, 0.5);
  color: var(--auth-text);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}

.bada-auth-input:not(.bada-auth-input-no-icon) {
  padding-left: 2.75rem;
}

.bada-auth-input-no-icon {
  padding-left: 1rem;
}

.bada-auth-input::placeholder {
  color: rgba(148, 163, 184, 0.55);
}

.bada-auth-input:focus {
  outline: none;
  border-color: rgba(99, 102, 241, 0.55);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15), 0 0 20px rgba(99, 102, 241, 0.1);
  background: rgba(3, 7, 18, 0.75);
}

.bada-auth-input:focus + svg,
.bada-auth-input-wrap:focus-within svg {
  color: var(--auth-accent-2);
}

.theme-agent .bada-auth-input:focus {
  border-color: rgba(6, 182, 212, 0.55);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15);
}

/* Mode toggle (register) */
.bada-auth-mode-picker {
  margin-bottom: 0.25rem;
}

.bada-auth-mode-heading {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--auth-muted);
  margin: 0 0 0.65rem;
}

.bada-auth-mode-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.bada-auth-mode-opt {
  position: relative;
  cursor: pointer;
  display: block;
}

.bada-auth-mode-opt input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.bada-auth-mode-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  min-height: 118px;
  padding: 1rem 0.85rem 0.85rem;
  border-radius: 16px;
  border: 1.5px solid var(--auth-border);
  background: rgba(3, 7, 18, 0.55);
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s, transform 0.25s;
  overflow: hidden;
}

.bada-auth-mode-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.bada-auth-mode-trial::before {
  background: radial-gradient(ellipse at 30% 0%, rgba(99, 102, 241, 0.18), transparent 65%);
}

.bada-auth-mode-pay::before {
  background: radial-gradient(ellipse at 30% 0%, rgba(34, 211, 238, 0.14), transparent 65%);
}

.bada-auth-mode-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.35rem;
}

.bada-auth-mode-icon svg {
  width: 22px;
  height: 22px;
}

.bada-auth-mode-icon-trial {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(139, 92, 246, 0.15));
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.bada-auth-mode-icon-pay {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.2), rgba(6, 182, 212, 0.12));
  color: #67e8f9;
  border: 1px solid rgba(34, 211, 238, 0.28);
}

.bada-auth-mode-badge {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  color: #c4b5fd;
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(99, 102, 241, 0.35);
}

.bada-auth-mode-check {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.5);
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.25s, transform 0.25s;
}

.bada-auth-mode-check svg {
  width: 12px;
  height: 12px;
  color: white;
}

.bada-auth-mode-opt:has(.bada-auth-mode-trial input:checked) .bada-auth-mode-badge {
  opacity: 0;
}

.bada-auth-mode-opt input:checked + .bada-auth-mode-card {
  transform: translateY(-3px);
}

.bada-auth-mode-opt input:checked + .bada-auth-mode-trial {
  border-color: rgba(99, 102, 241, 0.75);
  background: rgba(99, 102, 241, 0.1);
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.2), 0 12px 32px rgba(99, 102, 241, 0.18);
}

.bada-auth-mode-opt input:checked + .bada-auth-mode-pay {
  border-color: rgba(34, 211, 238, 0.65);
  background: rgba(34, 211, 238, 0.08);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.15), 0 12px 32px rgba(34, 211, 238, 0.12);
}

.bada-auth-mode-opt input:checked + .bada-auth-mode-pay .bada-auth-mode-check {
  background: linear-gradient(135deg, #06b6d4, #0891b2);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.45);
}

.bada-auth-mode-opt input:checked + .bada-auth-mode-card::before {
  opacity: 1;
}

.bada-auth-mode-opt input:checked + .bada-auth-mode-card .bada-auth-mode-check {
  opacity: 1;
  transform: scale(1);
}

.bada-auth-mode-card strong {
  display: block;
  font-size: 0.925rem;
  font-weight: 700;
  color: var(--auth-text);
  line-height: 1.3;
}

.bada-auth-mode-desc {
  display: block;
  font-size: 0.72rem;
  color: var(--auth-muted);
  line-height: 1.4;
}

.bada-auth-mode-opt:hover .bada-auth-mode-card {
  border-color: rgba(148, 163, 184, 0.35);
  transform: translateY(-1px);
}

.bada-auth-mode-opt input:checked + .bada-auth-mode-card:hover {
  transform: translateY(-3px);
}

@media (max-width: 420px) {
  .bada-auth-mode-grid {
    grid-template-columns: 1fr;
  }
  .bada-auth-mode-card {
    min-height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    padding: 0.85rem 1rem;
  }
  .bada-auth-mode-icon {
    margin-bottom: 0;
    width: 36px;
    height: 36px;
  }
  .bada-auth-mode-icon svg {
    width: 18px;
    height: 18px;
  }
  .bada-auth-mode-card strong,
  .bada-auth-mode-desc {
    flex: 1;
    min-width: 0;
  }
  .bada-auth-mode-desc {
    flex-basis: 100%;
    padding-left: calc(36px + 0.75rem);
    margin-top: -0.35rem;
  }
}

/* Plan picker */
.bada-auth-plans {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s, margin 0.35s;
  margin-top: 0;
}

.bada-auth-plans.is-open {
  max-height: 520px;
  opacity: 1;
  margin-top: 0.25rem;
}

.bada-auth-interval-tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
  padding: 0.25rem;
  border-radius: 12px;
  background: rgba(3, 7, 18, 0.45);
  border: 1px solid var(--auth-border);
}

.bada-auth-interval-tab {
  flex: 1;
  border: none;
  border-radius: 9px;
  padding: 0.45rem 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: inherit;
  color: var(--auth-muted);
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
}

.bada-auth-interval-tab.is-active {
  color: white;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

.bada-auth-reg-plan.hidden {
  display: none;
}

.bada-auth-plan-card strong {
  font-weight: 700;
}

.bada-auth-plan-opt input { position: absolute; opacity: 0; }

.bada-auth-plan-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--auth-border);
  background: rgba(3, 7, 18, 0.35);
  cursor: pointer;
  transition: all 0.25s;
  font-size: 0.875rem;
}

.bada-auth-plan-opt input:checked + .bada-auth-plan-card {
  border-color: rgba(34, 211, 238, 0.5);
  background: rgba(34, 211, 238, 0.08);
}

.bada-auth-plan-price {
  font-weight: 700;
  color: var(--auth-accent-2);
}

/* Submit button */
.bada-auth-submit {
  position: relative;
  width: 100%;
  padding: 0.95rem 1.5rem;
  margin-top: 0.5rem;
  border: none;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  color: white;
  cursor: pointer;
  background: linear-gradient(135deg, #6366f1, #4f46e5 50%, #4338ca);
  box-shadow: 0 8px 32px var(--auth-glow);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.25s;
  animation: auth-field-in 0.5s ease 0.4s both;
}

.bada-auth-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.2) 50%, transparent 60%);
  transform: translateX(-100%);
  animation: auth-shimmer 3s ease infinite;
}

@keyframes auth-shimmer {
  0% { transform: translateX(-100%); }
  40%, 100% { transform: translateX(100%); }
}

.bada-auth-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px var(--auth-glow);
}

.bada-auth-submit:active {
  transform: translateY(0);
}

.theme-agent .bada-auth-submit {
  background: linear-gradient(135deg, #06b6d4, #0891b2 50%, #0e7490);
  box-shadow: 0 8px 32px var(--auth-agent-glow);
}

.bada-auth-submit.is-loading {
  pointer-events: none;
  opacity: 0.85;
}

.bada-auth-submit.is-loading span {
  opacity: 0;
}

.bada-auth-submit.is-loading::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  left: 50%;
  top: 50%;
  margin: -11px 0 0 -11px;
  animation: auth-spin 0.7s linear infinite;
}

@keyframes auth-spin {
  to { transform: rotate(360deg); }
}

/* Footer links */
.bada-auth-foot {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--auth-muted);
  animation: auth-fade-up 0.6s ease 0.55s both;
}

.bada-auth-foot a {
  font-weight: 600;
}

.bada-auth-foot code {
  font-size: 0.8rem;
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
  background: rgba(255,255,255,0.06);
  color: var(--auth-accent-2);
}

.bada-auth-plans-showcase {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

@media (min-width: 1024px) {
  .bada-auth-plans-showcase {
    display: none;
  }
}

.bada-auth-input.uppercase {
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.bada-auth-plan-tile {
  padding: 1rem 1.15rem;
  border-radius: 16px;
  border: 1px solid var(--auth-border);
  background: rgba(15, 23, 42, 0.5);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  animation: auth-fade-up 0.6s ease both;
}

.bada-auth-plan-tile:nth-child(1) { animation-delay: 0.3s; }
.bada-auth-plan-tile:nth-child(2) { animation-delay: 0.45s; }
.bada-auth-plan-tile:nth-child(3) { animation-delay: 0.6s; }

.bada-auth-plan-tile:hover {
  transform: translateX(6px);
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: -8px 0 24px rgba(99, 102, 241, 0.08);
}

.bada-auth-plan-tile h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 700;
}

.bada-auth-plan-tile p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--auth-muted);
}

.bada-auth-plan-tile .price {
  margin-top: 0.5rem;
  font-weight: 800;
  color: var(--auth-accent-2);
  font-size: 0.95rem;
}

/* Mobile hero condensed */
.bada-auth-mobile-head {
  text-align: center;
  margin-bottom: 1.5rem;
  animation: auth-fade-up 0.6s ease both;
}

@media (min-width: 1024px) {
  .bada-auth-mobile-head { display: none; }
}

.bada-auth-mobile-head h1 {
  font-size: 1.65rem;
  font-weight: 800;
  margin: 0 0 0.35rem;
}

.bada-auth-mobile-head p {
  color: var(--auth-muted);
  font-size: 0.9rem;
  margin: 0;
}

/* Animations */
@keyframes auth-fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes auth-fade-down {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .bada-auth-orb,
  .bada-auth-msg,
  .bada-auth-float-chip,
  .bada-auth-logo-mark,
  .bada-auth-submit::before,
  #auth-particles {
    animation: none !important;
  }
  .bada-auth-msg { opacity: 1; transform: none; }
}
