/* PROPULSE - Auth Styles (merged) */

/* === From auth-shared.css === */

/* -------------------- Back to Landing -------------------- */
.back-to-landing {
  position: absolute;
  top: var(--space-lg);
  left: var(--space-lg);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.back-to-landing:hover {
  color: #fff;
}

/* -------------------- Split Screen Layout -------------------- */
.split-screen {
  display: flex;
  min-height: 100vh;
}

.brand-side {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: var(--space-3xl);
  overflow: hidden;
}

.auth-side {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--space-3xl);
  background-color: var(--cream-elegance);
  overflow-y: auto;
}

/* -------------------- Auth Form Container -------------------- */
.auth-form {
  width: 100%;
  max-width: 440px;
  animation: fadeInUp 600ms ease-out;
}

.auth-form h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: var(--space-lg);
  color: var(--rich-mahogany);
}

.auth-form p {
  color: var(--mahogany-70);
  margin-bottom: var(--space-lg);
}

/* -------------------- Input Groups -------------------- */
.input-group {
  margin-bottom: var(--space-lg);
}

.input-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.input-group input,
.input-group textarea,
.input-group select {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-input);
  background-color: #FFFFFF;
  color: var(--rich-mahogany);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
  outline: none;
}

.input-group input::placeholder {
  color: var(--mahogany-40);
}

.input-group input:focus {
  border-color: var(--brand-primary);
  box-shadow: var(--shadow-focus);
}

.input-group input.error {
  border-color: var(--color-error);
  background-color: var(--color-error-light);
}

.input-group input.success {
  border-color: var(--color-success);
}

.input-group .help-text {
  display: block;
  font-size: 0.75rem;
  color: var(--mahogany-60);
  margin-top: var(--space-xs);
}

.input-group .validation-message {
  display: block;
  font-size: 0.75rem;
  margin-top: var(--space-xs);
  min-height: 1.1em;
}

.input-group .validation-message.error {
  color: var(--color-error);
}

.input-group .validation-message.success {
  color: var(--color-success);
}

/* -------------------- Password Input with Toggle -------------------- */
.password-input {
  position: relative;
}

.password-input input {
  padding-right: 48px;
}

/* Hide native browser password reveal (Edge/Chrome) */
.password-input input::-ms-reveal,
.password-input input::-ms-clear {
  display: none;
}

.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--mahogany-50);
  transition: color var(--transition-fast);
  display: flex;
  align-items: center;
}

.toggle-password:hover {
  color: var(--rich-mahogany);
}

/* -------------------- Buttons -------------------- */
.btn-primary {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-sm);
  width: 100%;
  padding: 14px 24px;
  background: var(--brand-primary);
  color: white;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  transition: background var(--transition-base);
}

.btn-primary:hover {
  background: var(--brand-primary-hover);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-primary-large {
  padding: 18px 32px;
  font-size: 1.125rem;
}

/* Secondary/Ghost Button */
.btn-secondary {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-sm);
  padding: 12px 24px;
  background: transparent;
  color: var(--deep-teal);
  font-weight: 500;
  border: 2px solid var(--deep-teal);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
}

.btn-secondary:hover {
  background: var(--deep-teal);
  color: white;
  text-decoration: none;
}

/* OAuth Button */
.btn-oauth-google {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 24px;
  background: white;
  color: var(--rich-mahogany);
  font-weight: 500;
  border: 1px solid var(--mahogany-20);
  border-radius: 9999px;
  cursor: pointer;
  transition: all var(--transition-base);
}

.btn-oauth-google:hover {
  background: var(--bg-hover);
  border-color: var(--border-medium);
}

.btn-oauth-google-large {
  padding: 18px 24px;
  font-size: 1rem;
}


/* Button Ripple Effect */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: scale(0);
  animation: rippleAnim 600ms linear;
  pointer-events: none;
}

@keyframes rippleAnim {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* -------------------- Divider -------------------- */
.divider {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin: var(--space-xl) 0;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--mahogany-15);
}

.divider span {
  font-size: 0.875rem;
  color: var(--mahogany-50);
  text-transform: lowercase;
}

/* -------------------- Checkbox Custom -------------------- */
.checkbox-custom {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  margin-bottom: var(--space-md);
}

.checkbox-custom input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--deep-teal);
  cursor: pointer;
  flex-shrink: 0;
}

.checkbox-custom span {
  font-size: 0.875rem;
  color: var(--mahogany-80);
  line-height: 1.4;
}

.checkbox-custom span a {
  font-weight: 500;
}

/* -------------------- Password Details (Collapsible) -------------------- */
.password-option {
  margin-top: var(--space-lg);
  border: 1px solid var(--mahogany-10);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.password-option summary {
  padding: var(--space-md);
  cursor: pointer;
  color: var(--mahogany-70);
  font-size: 0.875rem;
  background: rgba(15, 23, 42, 0.03);
  transition: background var(--transition-fast);
  list-style: none;
  user-select: none;
}

.password-option summary::-webkit-details-marker {
  display: none;
}

.password-option summary::marker {
  display: none;
  content: '';
}

.password-option summary:hover {
  background: rgba(15, 23, 42, 0.06);
}

.password-option[open] summary {
  border-bottom: 1px solid var(--mahogany-10);
}

.password-option .password-content {
  padding: var(--space-lg);
}

.forgot-password {
  display: inline-block;
  font-size: 0.875rem;
  margin-bottom: var(--space-lg);
}

/* -------------------- Trust Signals -------------------- */
.trust-signals {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--mahogany-10);
}

.trust-signals span {
  font-size: 0.75rem;
  color: var(--mahogany-60);
}

/* -------------------- Auth Footer -------------------- */
.auth-footer {
  text-align: center;
  margin-top: var(--space-xl);
  font-size: 0.9rem;
  color: var(--mahogany-70);
}

.auth-footer a {
  font-weight: 600;
}

/* -------------------- Password Strength Indicator -------------------- */
.password-strength {
  margin-top: var(--space-sm);
}

.strength-bar {
  height: 4px;
  background: var(--mahogany-10);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: var(--space-xs);
}

.strength-bar-fill {
  height: 100%;
  width: 0;
  transition: all var(--transition-base);
  border-radius: var(--radius-full);
}

.strength-bar-fill.weak   { width: 25%; background: var(--color-error); }
.strength-bar-fill.fair   { width: 50%; background: var(--color-warning); }
.strength-bar-fill.good   { width: 75%; background: #84CC16; }
.strength-bar-fill.strong { width: 100%; background: var(--color-success); }

.strength-text {
  font-size: 0.75rem;
  color: var(--mahogany-60);
}

/* -------------------- Simple Centered Layout -------------------- */
.auth-simple-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: var(--space-xl);
  background: var(--cream-elegance);
}

.auth-simple-container .logo-small {
  width: 120px;
  margin-bottom: var(--space-xl);
}

.auth-simple-container h2 {
  font-size: clamp(1.4rem, 3vw, 1.75rem);
  margin-bottom: var(--space-md);
  text-align: center;
}

.auth-simple-container > p {
  text-align: center;
  color: var(--mahogany-70);
  margin-bottom: var(--space-xl);
  max-width: 400px;
}

.auth-simple-container form {
  width: 100%;
  max-width: 400px;
}

.link-back {
  margin-top: var(--space-xl);
  font-size: 0.875rem;
}

/* -------------------- Common Animations -------------------- */
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

@keyframes checkmark {
  0% { stroke-dashoffset: 100; opacity: 0; }
  50% { opacity: 1; }
  100% { stroke-dashoffset: 0; }
}

/* Utility animation classes */
.animate-fade-in {
  animation: fadeIn 400ms ease-out;
}

.animate-fade-in-up {
  animation: fadeInUp 600ms ease-out;
}

.animate-slide-down {
  animation: slideDown 400ms ease-out;
}

/* -------------------- Responsive -------------------- */
@media (max-width: 1023px) {
  .split-screen {
    flex-direction: column;
  }

  .brand-side {
    min-height: 35vh;
    padding: var(--space-xl);
  }

  .auth-side {
    padding: var(--space-xl);
  }
}

@media (max-width: 767px) {
  .brand-side {
    min-height: 30vh;
    padding: var(--space-lg);
  }

  .auth-side {
    padding: var(--space-lg);
  }

  .trust-signals {
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
  }
}

/* === From login.css === */

/* ===================================
   PROPULSE - Login & Brand Side Styles
   =================================== */

/* -------------------- Brand Side -------------------- */
.brand-side {
  background: linear-gradient(135deg, #0C2340, #122C4D);
  color: white;
  text-align: center;
}

.brand-side::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 80% 50% at 30% 70%,
    rgba(201, 169, 97, 0.15),
    transparent 70%
  );
  animation: auroraWave1 12s ease-in-out infinite;
  pointer-events: none;
}

.brand-side::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 60% 40% at 70% 30%,
    rgba(201, 169, 97, 0.10),
    transparent 70%
  );
  animation: auroraWave2 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes auroraWave1 {
  0%, 100% {
    opacity: 0.4;
    transform: translate(0, 0) scale(1);
  }
  25% {
    opacity: 0.8;
    transform: translate(-8%, -5%) scale(1.1);
  }
  50% {
    opacity: 0.6;
    transform: translate(5%, -10%) scale(1.05);
  }
  75% {
    opacity: 0.9;
    transform: translate(-3%, 3%) scale(1.08);
  }
}

@keyframes auroraWave2 {
  0%, 100% {
    opacity: 0.3;
    transform: translate(0, 0) scale(1);
  }
  30% {
    opacity: 0.7;
    transform: translate(8%, 6%) scale(1.08);
  }
  60% {
    opacity: 0.5;
    transform: translate(-6%, 10%) scale(1.12);
  }
  80% {
    opacity: 0.8;
    transform: translate(4%, -4%) scale(1.02);
  }
}

.brand-content {
  position: relative;
  z-index: 1;
  max-width: 500px;
}

.brand-side .logo {
  font-family: var(--font-body);
  font-size: 36px;
  font-weight: 700;
  color: white;
  margin: 0;
}
.login-brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: var(--space-xl);
  animation: slideDown 400ms ease-out;
}

.brand-side h1 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 600;
  margin-bottom: var(--space-md);
  animation: fadeInUp 600ms ease-out 100ms both;
}

.brand-side > .brand-content > p {
  font-size: 1.125rem;
  opacity: 0.9;
  margin-bottom: var(--space-2xl);
  animation: fadeInUp 600ms ease-out 200ms both;
}

/* -------------------- Welcome House -------------------- */
.welcome-house {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  margin: var(--space-2xl) 0;
  animation: fadeIn 800ms ease-out 400ms both;
}

.house-icon {
  width: 120px;
  height: 120px;
}

.welcome-house-text {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: white;
  text-align: center;
  margin: 0;
}

.welcome-house-sub {
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  margin: 0;
}

@keyframes houseFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

.house-icon {
  animation: houseFloat 4s ease-in-out infinite;
}

/* -------------------- Floating Particles -------------------- */
.particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  animation: particleFloat 8s ease-in-out infinite;
}

.particle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; }
.particle:nth-child(2) { left: 30%; top: 60%; animation-delay: 1s; }
.particle:nth-child(3) { left: 70%; top: 30%; animation-delay: 2s; }
.particle:nth-child(4) { left: 85%; top: 70%; animation-delay: 3s; }
.particle:nth-child(5) { left: 50%; top: 80%; animation-delay: 4s; }

.particle:nth-child(1) { width: 5px; height: 5px; }
.particle:nth-child(2) { width: 7px; height: 7px; }
.particle:nth-child(3) { width: 4px; height: 4px; }
.particle:nth-child(4) { width: 6px; height: 6px; }
.particle:nth-child(5) { width: 8px; height: 8px; }

@keyframes particleFloat {
  0%   { transform: translateY(0) scale(1);   opacity: 0; }
  15%  { opacity: 0.4; }
  50%  { transform: translateY(-40px) scale(1.2); opacity: 0.6; }
  85%  { opacity: 0.4; }
  100% { transform: translateY(-80px) scale(1);   opacity: 0; }
}

/* -------------------- Login Form Stagger Animations -------------------- */
.auth-form > .btn-oauth-google {
  animation: fadeInUp 500ms ease-out 50ms both;
}

.auth-form > .divider:first-of-type {
  animation: fadeIn 400ms ease-out 150ms both;
}

.auth-form > .input-group {
  animation: fadeInUp 500ms ease-out 200ms both;
}

/* -------------------- Responsive -------------------- */
@media (max-width: 1023px) {
  .welcome-house {
    margin: var(--space-lg) 0;
  }

  .house-icon {
    width: 90px;
    height: 90px;
  }
}

@media (max-width: 767px) {
  .brand-side .logo {
    width: 120px;
  }

  .welcome-house {
    display: none;
  }
}

/* === From register.css === */

/* ===================================
   PROPULSE - Register Page Styles
   =================================== */

/* -------------------- Benefits List (Brand Side) -------------------- */
.benefits-list {
  list-style: none;
  text-align: left;
  max-width: 320px;
  margin: var(--space-xl) auto;
}

.benefits-list li {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-sm) 0;
  font-size: 1rem;
  opacity: 0;
  animation: fadeInUp 500ms ease-out forwards;
}

.benefits-list li:nth-child(1) { animation-delay: 200ms; }
.benefits-list li:nth-child(2) { animation-delay: 300ms; }
.benefits-list li:nth-child(3) { animation-delay: 400ms; }

.benefits-list li svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* -------------------- Plan Selector -------------------- */
.plan-selector {
  margin-bottom: var(--space-xl);
}

.plan-selector .label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--rich-mahogany);
  margin-bottom: var(--space-md);
}

.plan-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.plan-card {
  position: relative;
  display: block;
  cursor: pointer;
}

.plan-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.plan-content {
  padding: var(--space-lg);
  background: white;
  border: 2px solid var(--mahogany-15);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  text-align: center;
  transition: all var(--transition-base);
}

.plan-card:hover .plan-content {
  border-color: var(--terracotta-30);
  background: var(--bg-hover);
}

.plan-card input:checked + .plan-content {
  border-color: var(--deep-teal);
  background: rgba(201, 169, 97, 0.03);
  box-shadow: 0 0 0 4px var(--deep-teal-10);
}

.plan-content h4 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  color: var(--rich-mahogany);
}

.plan-content .price {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--terracotta-warmth);
  margin-bottom: var(--space-xs);
}

.plan-content .subtitle {
  font-size: 0.75rem;
  color: var(--mahogany-60);
}

/* Recommended Badge */
.plan-recommended .plan-content::before {
  content: 'Recomendado';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 12px;
  background: var(--terracotta-warmth);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 2px;
  white-space: nowrap;
}

/* -------------------- Register: compact layout (no scroll) -------------------- */
[data-page="register"] .auth-side {
  padding: var(--space-xl) var(--space-2xl);
}

[data-page="register"] .auth-form h2 {
  margin-bottom: var(--space-md);
}

[data-page="register"] .auth-form .divider {
  margin: var(--space-md) 0;
}

[data-page="register"] .input-group {
  margin-bottom: var(--space-md);
}

[data-page="register"] .input-group label {
  margin-bottom: 4px;
}

[data-page="register"] .input-group input {
  padding: 10px 14px;
}

[data-page="register"] .password-input input {
  padding-right: 44px;
}

[data-page="register"] .plan-selector {
  margin-bottom: var(--space-md);
}

[data-page="register"] .plan-selector .label {
  margin-bottom: var(--space-sm);
}

[data-page="register"] .plan-content {
  padding: var(--space-sm) var(--space-md);
}

[data-page="register"] .plan-content .price {
  font-size: 1.1rem;
  margin-bottom: 2px;
}

[data-page="register"] .plan-content .subtitle {
  font-size: 0.7rem;
}

[data-page="register"] .checkbox-custom {
  margin-bottom: var(--space-sm);
}

[data-page="register"] .btn-primary-large {
  padding: 14px 28px;
  font-size: 1rem;
}

[data-page="register"] .auth-footer {
  margin-top: var(--space-md);
}

[data-page="register"] #google-btn-container {
  min-height: 40px;
}

/* -------------------- Micro Copy -------------------- */
.micro-copy {
  text-align: center;
  font-size: 0.8rem;
  color: var(--mahogany-60);
  line-height: 1.6;
  margin-top: var(--space-md);
}

/* -------------------- Loading Screen Overlay -------------------- */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(248, 250, 252, 0.98);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 300ms ease;
}

.loading-overlay.active {
  opacity: 1;
  visibility: visible;
}

.loading-content {
  text-align: center;
}

.loading-spinner-large {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(201, 169, 97, 0.2);
  border-top-color: var(--terracotta-warmth);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto var(--space-xl);
}

.loading-messages {
  min-height: 30px;
}

.loading-message {
  font-size: 1.125rem;
  color: var(--rich-mahogany);
  animation: loadingFade 1.5s ease-in-out;
}

@keyframes loadingFade {
  0%, 100% { opacity: 0; }
  20%, 80% { opacity: 1; }
}

/* -------------------- Terms Modal -------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 200ms ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: white;
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transform: scale(0.9);
  transition: transform 200ms ease;
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-header {
  padding: var(--space-lg);
  border-bottom: 1px solid var(--mahogany-10);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 1.25rem;
}

.modal-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
  color: var(--mahogany-50);
  transition: color var(--transition-fast);
  display: flex;
  align-items: center;
}

.modal-close:hover {
  color: var(--rich-mahogany);
}

.modal-body {
  padding: var(--space-lg);
  overflow-y: auto;
  max-height: 60vh;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--mahogany-80);
}

/* -------------------- Responsive -------------------- */
@media (max-width: 767px) {
  .plan-cards {
    grid-template-columns: 1fr;
  }

  .plan-recommended .plan-content::before {
    font-size: 0.65rem;
    padding: 3px 10px;
  }
}

/* === From onboarding.css === */

/* ===================================
   PROPULSE - Onboarding Wizard Styles
   =================================== */

/* -------------------- Progress Bar -------------------- */
.onboarding-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: white;
  padding: var(--space-sm) var(--space-xl) var(--space-xs);
  border-bottom: 1px solid var(--border-light);
  z-index: 100;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 800px;
  margin: 0 auto var(--space-xs);
}

.progress-logo {
  height: 22px;
}

.steps {
  display: flex;
  gap: var(--space-md);
}

.step {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 600;
  background: var(--mahogany-10);
  color: var(--mahogany-50);
  transition: all var(--transition-base);
}

.step.active {
  background: var(--terracotta-warmth);
  color: white;
  box-shadow: 0 0 0 4px rgba(201, 169, 97, 0.2);
}

.step.completed {
  background: var(--color-success);
  color: white;
}

.progress-bar {
  height: 4px;
  background: var(--mahogany-10);
  border-radius: var(--radius-full);
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--brand-primary);
  border-radius: var(--radius-full);
  transition: width 400ms ease;
}

.step-title {
  text-align: center;
  font-size: 0.8rem;
  color: var(--mahogany-60);
  margin-top: var(--space-xs);
}

/* -------------------- Stepper Bar (Onboarding) -------------------- */
.progress-header--stacked {
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
}

.stepper-bar {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  position: relative;
  width: 100%;
  max-width: 400px;
}

.stepper-track {
  position: absolute;
  top: 12px;
  left: 40px;
  right: 40px;
  height: 2px;
  background: var(--mahogany-10);
  z-index: 0;
}

.stepper-line--filled {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--terracotta-warmth);
  width: 0%;
  transition: width 400ms ease;
}

.stepper-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex: 1;
  z-index: 1;
}

.stepper-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  background: white;
  color: var(--mahogany-50);
  border: 2px solid var(--mahogany-20, rgba(15, 23, 42, 0.2));
  transition: all var(--transition-base);
}

.stepper-step.active .stepper-circle {
  background: var(--terracotta-warmth);
  color: white;
  border-color: var(--terracotta-warmth);
  box-shadow: 0 0 0 4px rgba(201, 169, 97, 0.2);
}

.stepper-step.completed .stepper-circle {
  background: var(--terracotta-warmth);
  color: white;
  border-color: var(--terracotta-warmth);
}

.stepper-label {
  font-size: 0.65rem;
  color: var(--mahogany-50);
  font-weight: 500;
  white-space: nowrap;
}

.stepper-step.active .stepper-label {
  color: var(--terracotta-warmth);
  font-weight: 600;
}

.stepper-step.completed .stepper-label {
  color: var(--terracotta-warmth);
}

/* -------------------- Container -------------------- */
.onboarding-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 110px var(--space-xl) var(--space-3xl);
  min-height: 100vh;
}

/* -------------------- Steps -------------------- */
.onboarding-step {
  display: none;
  animation: fadeInUp 500ms ease-out;
}

.onboarding-step.active {
  display: block;
}

.onboarding-step h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 500;
  text-align: center;
  margin-bottom: var(--space-2xl);
  color: var(--rich-mahogany);
}

/* -------------------- Upload Zone -------------------- */
.upload-zone {
  border: 2px dashed rgba(15, 23, 42, 0.25);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-base);
  margin-bottom: var(--space-xl);
  background: rgba(255, 255, 255, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.upload-zone:hover {
  border-color: var(--terracotta-warmth);
  background: rgba(201, 169, 97, 0.03);
}

.upload-zone.dragover {
  border-color: var(--deep-teal);
  background: rgba(201, 169, 97, 0.05);
  transform: scale(1.01);
}

.upload-zone svg {
  width: 48px;
  height: 48px;
  color: var(--mahogany-40);
  margin-bottom: var(--space-md);
}

.upload-zone p {
  font-weight: 500;
  color: var(--rich-mahogany);
  margin-bottom: var(--space-xs);
}

.upload-zone span {
  font-size: 0.8rem;
  color: var(--mahogany-50);
}

.logo-preview {
  position: relative;
  display: inline-block;
}

.logo-preview[hidden] {
  display: none;
}

.logo-preview img {
  max-width: 200px;
  max-height: 100px;
  border-radius: var(--radius-sm);
}

.logo-preview .btn-remove {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-error);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* -------------------- Color Pickers -------------------- */
.color-pickers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.color-group {
  text-align: center;
}

.color-group label {
  display: block;
  font-size: 0.875rem;
  color: var(--mahogany-70);
  margin-bottom: var(--space-sm);
}

.color-group input[type="color"] {
  width: 80px;
  height: 80px;
  border: 4px solid white;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: 1px solid var(--border-light);
  padding: 0;
}

.color-group input[type="color"]:hover {
  border-color: var(--border-medium);
}

.color-group input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

.color-group input[type="color"]::-webkit-color-swatch {
  border: none;
  border-radius: var(--radius-md);
}

/* -------------------- Color Section Card -------------------- */
.color-section-card {
  background: rgba(15, 23, 42, 0.02);
  border: 1px solid var(--mahogany-10);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.color-section-title {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--rich-mahogany);
  text-align: center;
  margin-bottom: var(--space-lg);
}

.color-section-card .color-pickers {
  margin-bottom: 0;
}

.color-input-wrapper {
  position: relative;
  display: inline-block;
}

.color-pencil-icon {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  color: var(--mahogany-50);
  pointer-events: none;
}

.color-hex {
  display: block;
  font-size: 0.75rem;
  font-family: 'Courier New', monospace;
  color: var(--mahogany-60);
  margin-top: var(--space-xs);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.color-group input[type="color"]:hover {
  border-color: var(--border-medium);
}

/* -------------------- Preview Card -------------------- */
.preview-card {
  background: white;
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
  margin-bottom: var(--space-xl);
}

.preview-card > p {
  font-size: 0.8rem;
  color: var(--mahogany-50);
  margin-bottom: var(--space-md);
  text-align: center;
}

.preview-slide {
  background: var(--cream-elegance);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: all var(--transition-base);
}

.preview-slide-logo {
  max-width: 100px;
  max-height: 50px;
  margin-bottom: var(--space-md);
  opacity: 0.8;
}

.preview-slide-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
}

.preview-slide-bar {
  width: 60%;
  height: 8px;
  border-radius: var(--radius-full);
  transition: background var(--transition-base);
}

/* Enhanced Preview Elements */
.preview-slide-logo-area {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 50px;
  margin-bottom: var(--space-md);
}

.preview-slide-logo-placeholder {
  width: 80px;
  height: 40px;
  background: rgba(15, 23, 42, 0.05);
  border: 1px dashed rgba(15, 23, 42, 0.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-slide-separator {
  width: 50%;
  height: 3px;
  border-radius: var(--radius-full);
  margin: var(--space-sm) auto var(--space-md);
  transition: background var(--transition-base);
}

.preview-slide-footer {
  width: 100%;
  padding-top: var(--space-md);
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  display: flex;
  justify-content: flex-end;
}

.preview-footer-accent {
  width: 40px;
  height: 4px;
  border-radius: var(--radius-full);
  transition: background var(--transition-base);
}

/* -------------------- Integration Cards -------------------- */
.integration-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.integration-card {
  display: block;
  cursor: pointer;
}

.integration-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.integration-card .card-content {
  background: white;
  border: 2px solid var(--mahogany-10);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  text-align: center;
  transition: all var(--transition-base);
}

.integration-card:hover .card-content {
  border-color: rgba(15, 23, 42, 0.25);
  background: var(--bg-hover);
}

.integration-card input:checked + .card-content {
  border-color: var(--deep-teal);
  background: rgba(201, 169, 97, 0.03);
  box-shadow: 0 0 0 4px var(--deep-teal-10);
}

.integration-card .card-content svg {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-md);
}

.integration-card .card-content h4 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  color: var(--rich-mahogany);
}

.integration-card .card-content p {
  font-size: 0.8rem;
  color: var(--mahogany-60);
}

/* -------------------- Navigation Buttons -------------------- */
.nav-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  margin-top: var(--space-xl);
}

.btn-back {
  padding: 14px 24px;
  background: transparent;
  color: var(--mahogany-70);
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.btn-back:hover {
  color: var(--rich-mahogany);
}

.btn-next {
  padding: 14px 32px;
  background: var(--brand-primary);
  color: white;
  font-weight: 600;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  transition: background var(--transition-base);
}

.btn-next:hover {
  background: var(--brand-primary-hover);
}

.btn-skip {
  padding: 14px 24px;
  background: transparent;
  color: var(--mahogany-50);
  font-weight: 500;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.btn-skip:hover {
  color: var(--mahogany-70);
}

/* -------------------- Celebration (Step 3) -------------------- */
.celebration {
  text-align: center;
  padding: var(--space-xl) 0;
  position: relative;
}

.celebration-img {
  width: 200px;
  margin-bottom: var(--space-xl);
}

@keyframes celebrationBounce {
  from, to { transform: translateY(0); }
}

/* Confetti */
.confetti {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1000;
}

.confetti-piece {
  position: absolute;
  width: 10px;
  height: 10px;
  opacity: 0;
}

.confetti-piece.active {
  animation: confettiFall 3s ease-out forwards;
}

@keyframes confettiFall {
  0% { opacity: 1; transform: translateY(-100px) rotate(0deg); }
  100% { opacity: 0; transform: translateY(100vh) rotate(720deg); }
}

/* Animated Checklist */
.checklist-animated {
  list-style: none;
  max-width: 300px;
  margin: var(--space-xl) auto;
  text-align: left;
}

.check-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--mahogany-10);
  opacity: 0;
  transform: translateX(-20px);
  animation: slideInCheck 500ms ease-out forwards;
}

.check-item:nth-child(1) { animation-delay: 200ms; }
.check-item:nth-child(2) { animation-delay: 400ms; }
.check-item:nth-child(3) { animation-delay: 600ms; }
.check-item:nth-child(4) { animation-delay: 800ms; }

@keyframes slideInCheck {
  to { opacity: 1; transform: translateX(0); }
}

.check-item .checkmark {
  width: 24px;
  height: 24px;
  color: var(--color-success);
  flex-shrink: 0;
}

.check-item .checkmark polyline {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: drawCheck 400ms ease-out forwards;
  animation-delay: inherit;
}

@keyframes drawCheck {
  to { stroke-dashoffset: 0; }
}

/* CTA Button Large */
.btn-cta-large {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 18px 40px;
  background: var(--brand-primary);
  color: white;
  font-size: 1.125rem;
  font-weight: 600;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  transition: background var(--transition-base);
  margin-top: var(--space-xl);
}

.btn-cta-large:hover {
  background: var(--brand-primary-hover);
}

.link-secondary {
  display: block;
  margin-top: var(--space-lg);
  font-size: 0.9rem;
  color: var(--mahogany-60);
}

.link-secondary:hover {
  color: var(--deep-teal);
}

/* -------------------- Responsive -------------------- */
@media (max-width: 767px) {
  .onboarding-progress {
    padding: var(--space-xs) var(--space-md);
  }

  .onboarding-container {
    padding: 100px var(--space-md) var(--space-2xl);
  }

  .color-pickers {
    grid-template-columns: 1fr;
  }

  .integration-cards {
    grid-template-columns: 1fr;
  }

  .nav-buttons {
    flex-direction: column;
  }

  .nav-buttons button {
    width: 100%;
  }
}

/* ==================== MICRO-INTERACTIONS (2026) ==================== */

/* --- A1: Split-screen staggered entrance --- */
@keyframes slideFromLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideFromRight {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}
.brand-side { animation: slideFromLeft 600ms ease-out both; }
.auth-side  { animation: slideFromRight 600ms ease-out 150ms both; }

/* --- A2: Input focus underline expand --- */
.input-group { position: relative; }
.input-group::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--deep-teal);
  border-radius: 1px;
  transition: width 300ms cubic-bezier(0.16, 1, 0.3, 1), left 300ms cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.input-group:focus-within::after {
  width: 100%;
  left: 0;
}

/* --- A3: Button hover enhancement --- */
.auth-side .btn-primary {
  transition: all var(--transition-base) cubic-bezier(0.16, 1, 0.3, 1);
}
.auth-side .btn-primary:hover {
  background: var(--brand-primary-hover);
}
.auth-side .btn-primary:active {
  opacity: 0.9;
  transition-duration: 100ms;
}

/* --- A4: Password toggle feedback --- */
.toggle-password {
  transition: transform 150ms cubic-bezier(0.34, 1.56, 0.64, 1), color var(--transition-fast);
}
.toggle-password:active {
  transform: translateY(-50%) scale(0.85);
}

/* --- A5: Input error shake --- */
@keyframes input-shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-4px); }
  40%, 80% { transform: translateX(4px); }
}
.input-group input.error {
  animation: input-shake 400ms ease-out;
}

/* --- A6: Trust signals stagger fade-in --- */
.trust-signals span {
  opacity: 0;
  transform: translateY(8px);
  animation: fadeInUp 400ms ease-out forwards;
}
.trust-signals span:nth-child(1) { animation-delay: 800ms; }
.trust-signals span:nth-child(2) { animation-delay: 900ms; }
.trust-signals span:nth-child(3) { animation-delay: 1000ms; }

/* --- A7: OAuth button hover --- */
.btn-oauth-google {
  transition: all var(--transition-base) cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-oauth-google:hover {
  background: var(--bg-hover);
}

/* ==================== BETA LOGIN ==================== */

.beta-badge {
  display: inline-block;
  position: relative;
  overflow: hidden;
  margin-top: var(--space-md);
  padding: 6px 18px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  border-radius: 9999px;
  animation: fadeInUp 500ms ease-out 300ms both;
}

.beta-badge::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.25),
    transparent
  );
  animation: badgeShimmer 4s ease-in-out 1.5s infinite;
}

@keyframes badgeShimmer {
  0%, 100% { transform: translateX(0); opacity: 0; }
  50%      { transform: translateX(500%); opacity: 1; }
}

.beta-info {
  margin-top: var(--space-lg);
  font-size: 0.8125rem;
  color: var(--text-muted, #8a8a8a);
  font-style: italic;
  text-align: center;
  line-height: 1.5;
}

[data-page="beta-login"] .auth-form h2 {
  color: var(--deep-teal, #C9A961);
}

[data-page="beta-login"] .auth-form .btn-primary {
  margin-top: var(--space-lg);
}

@keyframes form-shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

#beta-login-form.shake {
  animation: form-shake 500ms ease-out;
}

/* M9 — Back link on first-time-setup */
.back-to-login-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--neutral-500);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: 1rem;
  transition: color 0.2s ease;
}
.back-to-login-link:hover {
  color: var(--brand-primary);
}
.back-to-login-link svg {
  flex-shrink: 0;
}

/* C2 — Hide Turnstile widget in beta mode */
.beta-mode .cf-turnstile { display: none !important; }
