/* Auth pages (login, register) — public marketing site palette */

body.auth-page {
  --brand: #00A870;
  --brand-dark: #007A52;
  --brand-mid: #00C48C;
  --brand-light: #E6FFF5;
  --brand-glow: rgba(0, 168, 112, 0.22);
  --accent: #FFB800;
  --accent-dark: #E69500;
  --accent-glow: rgba(255, 184, 0, 0.28);
  --violet: #8B5CF6;
  --cyan: #06B6D4;
  --text-primary: #0F172A;
  --text-secondary: #64748B;
  --text-muted: #64748B;
  --surface: #FFFFFF;
  --surface-2: #FFFFFF;
  --surface-3: #F8FAFC;
  --border: #E2E8F0;
  --radius: 16px;
  --radius-lg: 24px;
  --gradient-brand: linear-gradient(135deg, #00A870 0%, #06B6D4 50%, #8B5CF6 100%);
  --gradient-warm: linear-gradient(135deg, #FFB800 0%, #F43F5E 100%);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  color: var(--text-primary);
  background: #fff;
}

.auth-site-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 8% -5%, var(--brand-glow) 0%, transparent 58%),
    radial-gradient(ellipse 55% 45% at 95% 8%, var(--accent-glow) 0%, transparent 52%),
    radial-gradient(ellipse 45% 35% at 78% 88%, rgba(139, 92, 246, 0.16) 0%, transparent 55%),
    radial-gradient(ellipse 40% 30% at 15% 92%, rgba(6, 182, 212, 0.14) 0%, transparent 50%),
    linear-gradient(180deg, #FFFFFF 0%, #FAFFFE 35%, #FFFFFF 100%);
}

.auth-site-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 168, 112, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 168, 112, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, transparent 75%);
}

.auth-wrap {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

.auth-side {
  background: var(--gradient-brand);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.auth-side::before,
.auth-side::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
}

.auth-side::before {
  width: 360px;
  height: 360px;
  top: -80px;
  right: -60px;
  background: rgba(255, 184, 0, 0.35);
}

.auth-side::after {
  width: 320px;
  height: 320px;
  bottom: -100px;
  left: -40px;
  background: rgba(6, 182, 212, 0.28);
}

.auth-side-inner {
  position: relative;
  z-index: 1;
}

.auth-side .brand-logo {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
}

.auth-side .brand-logo span {
  color: var(--accent);
}

.auth-side h1 {
  font-size: clamp(1.75rem, 3vw, 2.125rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 14px;
}

.auth-side p {
  opacity: 0.92;
  font-size: 1.0625rem;
  line-height: 1.65;
  max-width: 420px;
}

.auth-side-features {
  list-style: none;
  margin-top: 32px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-side-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9375rem;
  opacity: 0.95;
}

.auth-side-features li::before {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.auth-main {
  background: transparent;
  padding: 24px 32px 40px;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
}

.auth-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 520px;
  margin: 0 auto 20px;
}

.auth-topbar a {
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.auth-back {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
}

.auth-back:hover {
  color: var(--brand);
}

.auth-logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  font-weight: 700;
}

.auth-app-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 6px 20px var(--brand-glow);
}

.auth-logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--gradient-brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.8125rem;
  box-shadow: 0 6px 20px var(--brand-glow);
}

.auth-logo-mark span {
  color: var(--accent);
}

.auth-card {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  box-shadow: 0 16px 48px rgba(0, 168, 112, 0.1);
}

.auth-card.auth-card-wide {
  max-width: 560px;
}

.auth-card h2 {
  font-size: 1.625rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.auth-card .sub {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

body.auth-page a {
  color: var(--brand);
}

body.auth-page a:hover {
  color: var(--brand-dark);
}

body.auth-page .btn-primary {
  background: var(--gradient-brand);
  border: none;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 8px 28px var(--brand-glow);
  transition: transform 0.2s var(--ease), box-shadow 0.25s var(--ease), filter 0.2s;
}

body.auth-page .btn-primary:hover {
  background: var(--gradient-brand);
  color: #fff;
  filter: brightness(1.06);
  box-shadow: 0 12px 36px rgba(0, 168, 112, 0.35);
  transform: translateY(-1px);
}

body.auth-page .btn-accent {
  background: var(--gradient-warm);
  border: none;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 8px 28px var(--accent-glow);
}

body.auth-page .btn-accent:hover {
  background: var(--gradient-warm);
  color: #fff;
  filter: brightness(1.05);
  transform: translateY(-1px);
}

body.auth-page .btn-secondary {
  background: var(--surface-3);
  border: 1px solid var(--border);
  color: var(--text-primary);
}

body.auth-page .btn-secondary:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-light);
}

body.auth-page .form-input,
body.auth-page .form-select {
  border-radius: 12px;
  border-color: var(--border);
  transition: border-color 0.2s, box-shadow 0.2s;
}

body.auth-page .form-input:focus,
body.auth-page .form-select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-glow);
}

body.auth-page .google-btn {
  border-radius: 12px;
  border-color: var(--border);
  font-weight: 600;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

body.auth-page .google-btn:hover {
  border-color: var(--brand);
  box-shadow: 0 4px 16px var(--brand-glow);
  transform: translateY(-1px);
}

body.auth-page .divider-or {
  color: var(--text-muted);
  font-size: 0.8125rem;
}

body.auth-page .wizard-step.active {
  background: var(--brand);
  box-shadow: 0 0 8px var(--brand-glow);
}

body.auth-page .wizard-step.done {
  background: var(--accent);
}

body.auth-page .select-card {
  border-radius: 14px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s, background 0.2s;
}

body.auth-page .select-card:hover {
  border-color: var(--brand-mid);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 168, 112, 0.08);
}

body.auth-page .select-card.selected {
  border-color: var(--brand);
  background: var(--brand-light);
  box-shadow: 0 8px 28px var(--brand-glow);
}

body.auth-page .select-card .sc-price {
  color: var(--brand-dark);
  font-weight: 700;
}

body.auth-page .badge-accent {
  background: var(--gradient-warm);
  color: #fff;
}

body.auth-page .alert-info {
  background: var(--brand-light);
  border-color: rgba(0, 168, 112, 0.2);
  color: var(--brand-dark);
}

body.auth-page .alert-danger {
  border-radius: 12px;
}

@media (max-width: 900px) {
  .auth-side {
    display: none;
  }

  .auth-main {
    padding: 20px 16px 32px;
    min-height: 100vh;
    justify-content: flex-start;
    padding-top: 24px;
  }

  .auth-card {
    padding: 28px 22px;
    border-radius: 20px;
  }

  .auth-topbar {
    max-width: 100%;
  }
}
