/**
 * emzaBala.css - Signup Page Styles
 * andazeh v4 - Tenant Self-Service Onboarding
 * Created: 2025-12-23
 *
 * KEYWORDS: signup, registration, emzaBala, tenant-onboarding
 */

:root {
  /* Natural Color Palette - Earthy & Warm */
  --bg-primary: #faf9f7;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f5f3f0;
  --bg-dark: #1e2937;

  /* Natural accent colors matching app icon */
  --accent-green: #38a169;
  --accent-blue: #3182ce;
  --accent-orange: #dd6b20;
  --accent-teal: #319795;
  --accent-red: #e53e3e;
  --accent-purple: #805ad5;

  /* Warm text tones */
  --text-primary: #1a202c;
  --text-secondary: #4a5568;
  --text-tertiary: #718096;

  /* Subtle borders */
  --border-subtle: #e8e6e1;
  --border-medium: #d4d0c8;

  /* Natural shadows */
  --shadow-card: 0 4px 24px rgba(26, 32, 44, 0.08);
  --shadow-input: 0 2px 4px rgba(26, 32, 44, 0.04);
  --shadow-button: 0 4px 14px rgba(49, 130, 206, 0.25);
  --shadow-button-hover: 0 8px 25px rgba(49, 130, 206, 0.35);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  overflow-x: hidden !important;
  width: 100% !important;
  max-width: 100vw !important;
}

body {
  overflow-x: hidden !important;
  width: 100% !important;
  max-width: 100vw !important;
  position: relative;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 100vh;
  background: linear-gradient(145deg, #faf9f7 0%, #f0ebe4 50%, #e8f4f8 100%);
}

/* ==========================================
   Container Layout - Two Column Split
   ========================================== */
.signup-container {
  display: flex;
  min-height: 100vh;
  width: 100%;
  max-width: 100vw !important;
  overflow-x: hidden !important;
}

/* Left Panel: Marketing */
.signup-marketing {
  flex: 1;
  background: linear-gradient(145deg, var(--bg-dark) 0%, #2d3748 100%);
  padding: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.signup-marketing::before {
  content: '';
  position: absolute;
  top: -50%;
  right: 0; /* Fixed: was -50% which caused horizontal overflow */
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 100% 50%, rgba(49, 130, 206, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.marketing-content {
  max-width: 440px;
  color: white;
  position: relative;
  z-index: 1;
}

.signup-logo {
  width: 72px;
  height: 72px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  padding-bottom: 14px;
  margin-bottom: 32px;
  backdrop-filter: blur(10px);
}

.signup-logo .bar {
  width: 10px;
  border-radius: 3px 3px 0 0;
  animation: barPulse 2s ease-in-out infinite;
}

.signup-logo .bar-green { height: 16px; background: var(--accent-green); animation-delay: 0s; }
.signup-logo .bar-blue { height: 24px; background: var(--accent-blue); animation-delay: 0.2s; }
.signup-logo .bar-orange { height: 32px; background: var(--accent-orange); animation-delay: 0.4s; }

@keyframes barPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.85; transform: scaleY(0.95); }
}

.marketing-content h1 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}

.marketing-content .tagline {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 40px;
  line-height: 1.6;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
}

.feature-item svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent-green);
  stroke-width: 3;
  fill: none;
}

/* Right Panel: Form */
.signup-form-panel {
  flex: 1;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
}

.signup-card {
  width: 100%;
  max-width: 480px;
  background: var(--bg-secondary);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-subtle);
}

.signup-header {
  text-align: center;
  margin-bottom: 32px;
}

.signup-header h2 {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.signup-header p {
  font-size: 14px;
  color: var(--text-tertiary);
}

/* ==========================================
   Loading Skeleton
   ========================================== */
.loading-skeleton {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.skeleton-line {
  height: 44px;
  background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--border-subtle) 50%, var(--bg-tertiary) 75%);
  background-size: 200% 100%;
  border-radius: 10px;
  animation: shimmer 1.5s infinite;
}

.skeleton-line.short {
  width: 60%;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ==========================================
   Step Indicator
   ========================================== */
.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 32px;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.step.active .step-number {
  background: var(--accent-blue);
  color: white;
}

.step.completed .step-number {
  background: var(--accent-green);
  color: white;
}

.step-label {
  font-size: 12px;
  color: var(--text-tertiary);
  transition: color 0.3s ease;
}

.step.active .step-label {
  color: var(--text-primary);
  font-weight: 500;
}

.step-line {
  width: 80px;
  height: 2px;
  background: var(--border-medium);
  margin: 0 16px;
  margin-bottom: 20px;
}

/* ==========================================
   Form Elements
   ========================================== */
.signup-form {
  opacity: 1;
  transition: opacity 0.3s ease;
}

.signup-form.hidden {
  display: none;
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-group label svg {
  width: 16px;
  height: 16px;
  stroke: var(--text-tertiary);
  stroke-width: 2;
  fill: none;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="password"] {
  width: 100%;
  padding: 14px 16px;
  font-size: 15px;
  font-family: inherit;
  border: 1px solid var(--border-medium);
  border-radius: 10px;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  transition: all 0.2s ease;
  box-shadow: var(--shadow-input);
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent-blue);
  background: var(--bg-secondary);
  box-shadow: 0 0 0 3px rgba(34, 139, 230, 0.15);
}

.form-group input::placeholder {
  color: var(--text-tertiary);
}

.form-group input.error {
  border-color: var(--accent-red);
}

.form-group input.success {
  border-color: var(--accent-green);
}

.input-hint {
  display: block;
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 6px;
}

.input-hint.error {
  color: var(--accent-red);
}

.input-hint.success {
  color: var(--accent-green);
}

/* Input with addon */
.input-with-addon {
  display: flex;
  align-items: stretch;
}

.input-with-addon input {
  border-radius: 10px 0 0 10px;
  border-right: none;
}

.input-addon {
  display: flex;
  align-items: center;
  padding: 0 14px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-medium);
  border-left: none;
  border-radius: 0 10px 10px 0;
  font-size: 13px;
  color: var(--text-tertiary);
  white-space: nowrap;
}

/* Form row */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ==========================================
   Billing Toggle
   ========================================== */
.billing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  margin-bottom: 1rem;
  padding: 0.5rem 0;
}

.billing-toggle .monthly-label,
.billing-toggle .yearly-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-tertiary);
  cursor: pointer;
  transition: color 0.2s ease;
}

.billing-toggle .monthly-label.active,
.billing-toggle .yearly-label.active {
  color: var(--accent-blue);
  font-weight: 600;
}

.toggle-switch {
  width: 44px;
  height: 24px;
  background: var(--border-medium);
  border-radius: 12px;
  cursor: pointer;
  position: relative;
  transition: background 0.2s ease;
}

.toggle-switch.yearly {
  background: var(--accent-blue);
}

.toggle-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transition: transform 0.2s ease;
}

.toggle-switch.yearly .toggle-knob {
  transform: translateX(20px);
}

.save-badge {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  background: var(--accent-green);
  color: white;
  border-radius: 1em;
  white-space: nowrap;
}

/* ==========================================
   Plan Selector
   ========================================== */
.plan-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.plan-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem;
  color: var(--text-tertiary);
  font-size: 0.875rem;
}

.plan-option {
  cursor: pointer;
  position: relative;
}

.plan-option input {
  display: none;
}

.plan-card {
  padding: 14px 10px;
  border: 2px solid var(--border-medium);
  border-radius: 0.75em;
  text-align: center;
  transition: all 0.2s ease;
  background: var(--bg-secondary);
  position: relative;
}

.plan-option:hover .plan-card {
  border-color: var(--accent-blue);
  transform: translateY(-2px);
}

.plan-option.selected .plan-card,
.plan-option input:checked + .plan-card {
  border-color: var(--accent-blue);
  background: rgba(49, 130, 206, 0.05);
  box-shadow: 0 4px 12px rgba(49, 130, 206, 0.15);
}

.plan-badge {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.125rem 0.5rem;
  background: var(--accent-orange);
  color: white;
  font-size: 0.625rem;
  font-weight: 600;
  border-radius: 1em;
  white-space: nowrap;
}

.plan-name {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.plan-price {
  display: block;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--accent-blue);
  margin-bottom: 2px;
}

.plan-price .original {
  text-decoration: line-through;
  color: var(--text-tertiary);
  font-size: 0.75rem;
  font-weight: 400;
  margin-right: 0.25rem;
}

.plan-interval {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-tertiary);
}

.plan-desc {
  display: block;
  font-size: 0.6875rem;
  color: var(--text-tertiary);
  margin-top: 4px;
}

/* ==========================================
   Password Strength
   ========================================== */
.password-strength {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.strength-bar {
  flex: 1;
  height: 4px;
  background: var(--border-medium);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.strength-bar::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0;
  background: var(--accent-red);
  transition: all 0.3s ease;
}

.password-strength.weak .strength-bar::after { width: 33%; background: var(--accent-red); }
.password-strength.medium .strength-bar::after { width: 66%; background: var(--accent-orange); }
.password-strength.strong .strength-bar::after { width: 100%; background: var(--accent-green); }

.strength-text {
  font-size: 11px;
  color: var(--text-tertiary);
  min-width: 50px;
}

.password-strength.weak .strength-text { color: var(--accent-red); }
.password-strength.medium .strength-text { color: var(--accent-orange); }
.password-strength.strong .strength-text { color: var(--accent-green); }

/* ==========================================
   Checkbox
   ========================================== */
.checkbox-group {
  margin-bottom: 16px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.checkbox-label input {
  display: none;
}

.checkmark {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border-medium);
  border-radius: 4px;
  flex-shrink: 0;
  position: relative;
  transition: all 0.2s ease;
  margin-top: 2px;
}

.checkbox-label:hover .checkmark {
  border-color: var(--accent-blue);
}

.checkbox-label input:checked + .checkmark {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
}

.checkbox-label input:checked + .checkmark::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-label a {
  color: var(--accent-blue);
  text-decoration: none;
}

.checkbox-label a:hover {
  text-decoration: underline;
}

/* ==========================================
   Buttons
   ========================================== */
.button-row {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.next-btn,
.signup-btn {
  flex: 1;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  color: white;
  background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-teal) 100%);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: var(--shadow-button);
}

.next-btn:hover,
.signup-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-button-hover);
}

.next-btn:active,
.signup-btn:active {
  transform: translateY(0) scale(0.98);
}

.next-btn:disabled,
.signup-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.next-btn svg,
.signup-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.back-btn {
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  color: var(--text-secondary);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-medium);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.back-btn:hover {
  background: var(--bg-secondary);
  border-color: var(--text-tertiary);
}

.back-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* Spinner */
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* ==========================================
   Success State
   ========================================== */
.success-state {
  text-align: center;
  padding: 20px 0;
}

.success-state.hidden {
  display: none;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--accent-green) 0%, var(--accent-teal) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  animation: successPop 0.5s ease;
}

@keyframes successPop {
  0% { transform: scale(0); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.success-icon svg {
  width: 40px;
  height: 40px;
  stroke: white;
  stroke-width: 3;
  fill: none;
}

.success-state h3 {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.success-state > p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.snippet-preview {
  background: var(--bg-dark);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 24px;
  text-align: left;
}

.snippet-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 8px;
}

.snippet-preview code {
  display: block;
  font-family: 'Monaco', 'Consolas', monospace;
  font-size: 12px;
  color: var(--accent-green);
  word-break: break-all;
  margin-bottom: 12px;
}

.copy-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 500;
  color: white;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.copy-btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.login-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-teal) 100%);
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-button);
}

.login-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-button-hover);
}

.login-link svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* ==========================================
   Footer
   ========================================== */
.footer-text {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: var(--text-tertiary);
}

.footer-text a {
  color: var(--accent-blue);
  text-decoration: none;
  font-weight: 500;
}

.footer-text a:hover {
  text-decoration: underline;
}

/* ==========================================
   Toast
   ========================================== */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--accent-red);
  color: white;
  padding: 14px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(250, 82, 82, 0.3);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 10px;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast.success {
  background: var(--accent-green);
  box-shadow: 0 8px 24px rgba(64, 192, 87, 0.3);
}

.toast svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  flex-shrink: 0;
}

/* ==========================================
   Honeypot (hidden from humans)
   ========================================== */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  tab-index: -1;
}

/* ==========================================
   Responsive - Tablet
   ========================================== */
@media (max-width: 1024px) {
  .signup-container {
    flex-direction: column;
  }

  .signup-marketing {
    padding: 40px 24px;
    min-height: auto;
  }

  .marketing-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* Center the logo */
  .signup-logo {
    margin-left: auto;
    margin-right: auto;
  }

  .marketing-content h1 {
    font-size: 28px;
  }

  .features-list {
    display: none;
  }

  .signup-form-panel {
    padding: 24px;
  }

  .signup-card {
    padding: 32px 24px;
  }
}

/* ==========================================
   Responsive - Mobile
   ========================================== */
@media (max-width: 600px) {
  body {
    background: var(--bg-primary);
  }

  .signup-container {
    min-height: 100vh;
  }

  /* Mobile marketing panel */
  .signup-marketing {
    padding: 32px 20px;
  }

  .signup-logo {
    width: 56px;
    height: 56px;
    margin-bottom: 20px;
  }

  .signup-logo .bar {
    width: 8px;
    border-radius: 3px;
  }

  .signup-logo .bar-green { height: 26px; }
  .signup-logo .bar-blue { height: 20px; }
  .signup-logo .bar-orange { height: 14px; }

  .marketing-content h1 {
    font-size: 24px;
    margin-bottom: 8px;
  }

  .marketing-content .tagline {
    font-size: 14px;
    line-height: 1.5;
  }

  /* Mobile form panel */
  .signup-form-panel {
    padding: 16px;
    min-height: auto;
  }

  .signup-card {
    padding: 24px 20px;
    border-radius: 20px;
  }

  /* Mobile form header */
  .signup-header h2 {
    font-size: 22px;
    text-align: center;
  }

  .signup-header p {
    font-size: 14px;
    text-align: center;
  }

  /* Mobile step indicator */
  .step-indicator {
    justify-content: center;
    gap: 8px;
    margin-bottom: 28px;
  }

  .step-line {
    width: 40px;
  }

  .step-number {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  .step-label {
    font-size: 11px;
  }

  /* Mobile form groups - center icons */
  .form-group {
    margin-bottom: 16px;
  }

  .form-group label {
    font-size: 12px;
    justify-content: flex-start;
  }

  .form-group label svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
  }

  .form-group input {
    padding: 12px 14px;
    font-size: 14px;
    border-radius: 10px;
  }

  .input-hint {
    font-size: 11px;
  }

  /* Mobile URL input */
  .input-with-addon {
    flex-direction: column;
  }

  .input-with-addon input {
    border-radius: 10px !important;
  }

  .input-addon {
    padding: 8px 12px;
    font-size: 12px;
    text-align: center;
    border-radius: 8px;
    margin-top: 8px;
    background: var(--bg-tertiary);
  }

  /* Mobile plan selector */
  .plan-selector {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .plan-card {
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
  }

  .plan-name {
    font-size: 14px;
    margin-bottom: 0;
  }

  .plan-price {
    font-size: 14px;
    margin-bottom: 0;
    margin-left: auto;
  }

  .plan-desc {
    display: none;
  }

  /* Mobile password row */
  .form-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Mobile password strength */
  .password-strength {
    gap: 6px;
    margin-top: 6px;
  }

  .strength-bar {
    height: 3px;
  }

  .strength-text {
    font-size: 10px;
  }

  /* Mobile checkbox */
  .checkbox-group {
    margin-bottom: 12px;
  }

  .checkbox-label span:last-child {
    font-size: 12px;
    line-height: 1.4;
  }

  .checkmark {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
  }

  /* Mobile buttons */
  .button-row {
    flex-direction: column;
    gap: 12px;
  }

  .back-btn,
  .signup-btn,
  .next-btn {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    font-size: 15px;
    border-radius: 12px;
  }

  .back-btn {
    order: 2;
    background: transparent;
    color: var(--text-secondary);
  }

  .signup-btn {
    order: 1;
  }

  /* Mobile success state */
  .success-state {
    padding: 32px 20px;
    text-align: center;
  }

  .success-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 16px;
  }

  .success-state h3 {
    font-size: 20px;
  }

  .success-state p {
    font-size: 14px;
  }

  .snippet-preview {
    padding: 16px;
    border-radius: 12px;
  }

  .snippet-preview code {
    font-size: 11px;
    word-break: break-all;
  }

  .copy-btn {
    margin-top: 12px;
    width: 100%;
    justify-content: center;
  }

  .login-link {
    font-size: 14px;
    padding: 12px 24px;
  }

  /* Mobile footer */
  .footer-text {
    font-size: 13px;
    text-align: center;
  }

  /* Mobile toast */
  .toast {
    left: 16px;
    right: 16px;
    bottom: 16px;
    transform: translateY(100%);
    font-size: 13px;
  }

  .toast.show {
    transform: translateY(0);
  }
}

/* ==========================================
   Reduced Motion
   ========================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
