/* ====================================================================
   AUTH FLOW — MasterSistem ERP
   Login · Registro · Planes · Checkout
   Diseño SaaS Premium (Figma Mockups)
   ==================================================================== */

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

/* ── Variables Específicas Auth ─────────────────────────────────────── */
:root {
  --auth-navy: #080B10;
  --auth-navy-mid: #0D121B;
  --auth-navy-light: #1E293B;
  --auth-blue: #246BFF;
  --auth-blue-hover: #1559E8;
  --auth-blue-light: #00A8FF;
  --auth-blue-glow: rgba(36, 107, 255, 0.28);
  --auth-blue-subtle: #EFF6FF;
  --auth-white: #FFFFFF;
  --auth-bg: #F8FAFC;
  --auth-text: #080B10;
  --auth-text-mid: #475569;
  --auth-text-muted: #737B87;
  --auth-text-light: #94A3B8;
  --auth-border: #E2E8F0;
  --auth-border-focus: #246BFF;
  --auth-success: #10B981;
  --auth-success-bg: #ECFDF5;
  --auth-danger: #EF4444;
  --auth-danger-bg: #FEF2F2;
  --auth-warning: #F59E0B;
  --auth-radius: 10px;
  --auth-radius-lg: 16px;
  --auth-radius-xl: 20px;
  --auth-shadow: 0 4px 24px -4px rgba(8, 11, 16, 0.08);
  --auth-shadow-lg: 0 12px 40px -8px rgba(8, 11, 16, 0.14);
  --auth-font: 'DM Sans', 'Segoe UI', -apple-system, sans-serif;
  --auth-font-display: 'Manrope', 'DM Sans', sans-serif;
  --auth-transition: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}


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

html, body {
  margin: 0;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  color: var(--auth-text);
  background: var(--auth-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, .auth-hero__title, .auth-card__title, .plans-page__title {
  font-family: 'Manrope', 'DM Sans', sans-serif !important;
  font-weight: 800;
  letter-spacing: -0.03em;
}

input, button, select, textarea, label {
  font-family: 'DM Sans', 'Segoe UI', -apple-system, sans-serif !important;
}

/* ── Layout Split-Screen ────────────────────────────────────────────── */

.auth-layout {
  display: flex;
  min-height: 100vh;
  background: var(--auth-bg);
}

.auth-sidebar {
  position: relative;
  width: 44%;
  min-width: 420px;
  max-width: 580px;
  background: var(--auth-navy);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px 44px;
  overflow: hidden;
  color: #FFFFFF;
}

/* Efectos de fondo del sidebar */
.auth-sidebar::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -20%;
  width: 80%;
  height: 80%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 65%);
  pointer-events: none;
  animation: auth-ambient-1 20s ease-in-out infinite alternate;
}

.auth-sidebar::after {
  content: "";
  position: absolute;
  bottom: -25%;
  left: -15%;
  width: 70%;
  height: 70%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, rgba(37, 99, 235, 0.05) 40%, transparent 65%);
  pointer-events: none;
  animation: auth-ambient-2 24s ease-in-out infinite alternate;
}

@keyframes auth-ambient-1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-30px, 20px) scale(1.1); }
}

@keyframes auth-ambient-2 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(20px, -15px) scale(1.05); }
}

.auth-sidebar > * {
  position: relative;
  z-index: 1;
}


/* ── Sidebar: Branding ──────────────────────────────────────────────── */

.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 56px;
}

.auth-brand__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.08);
  padding: 4px;
}

.auth-brand__name {
  font-family: var(--auth-font-display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}

.auth-brand__badge {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--auth-blue-light);
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(37, 99, 235, 0.3);
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 4px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}


/* ── Sidebar: Hero Content ──────────────────────────────────────────── */

.auth-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-hero__tagline {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--auth-blue-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.auth-hero__title {
  font-family: var(--auth-font-display);
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: #FFFFFF;
  margin: 0 0 16px;
}

.auth-hero__desc {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--auth-text-light);
  max-width: 400px;
  margin-bottom: 36px;
}


/* ── Sidebar: Features List ─────────────────────────────────────────── */

.auth-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.auth-features__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.auth-features__icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(37, 99, 235, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.auth-features__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.auth-features__label {
  font-weight: 600;
  font-size: 0.88rem;
  color: #F1F5F9;
}

.auth-features__sublabel {
  font-size: 0.8rem;
  color: var(--auth-text-light);
  line-height: 1.4;
}


/* ── Sidebar: Testimonial / Quote ───────────────────────────────────── */

.auth-quote {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--auth-radius-lg);
  padding: 20px 22px;
  margin-top: 40px;
}

.auth-quote__text {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #CBD5E1;
  font-style: italic;
  margin-bottom: 12px;
}

.auth-quote__author {
  font-size: 0.78rem;
  font-weight: 600;
  color: #94A3B8;
}

.auth-quote__role {
  font-size: 0.72rem;
  color: #64748B;
}


/* ── Sidebar: Footer ────────────────────────────────────────────────── */

.auth-sidebar__footer {
  font-size: 0.72rem;
  color: #475569;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}


/* ── Main Panel (Formularios) ───────────────────────────────────────── */

.auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  overflow-y: auto;
  background: var(--auth-bg);
  position: relative;
}

/* Sutil patrón de puntos en el fondo */
.auth-main::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.auth-main > * {
  position: relative;
  z-index: 1;
}


/* ── Form Card ──────────────────────────────────────────────────────── */

.auth-card {
  width: 100%;
  max-width: 440px;
  animation: auth-fadeIn 0.5s ease-out;
}

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

.auth-card__header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-card__logo-mobile {
  display: none; /* Solo visible en mobile */
  width: 42px;
  height: 42px;
  margin: 0 auto 16px;
  border-radius: 10px;
  object-fit: contain;
}

.auth-card__title {
  font-family: var(--auth-font-display);
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--auth-text);
  letter-spacing: -0.025em;
  margin: 0 0 6px;
}

.auth-card__subtitle {
  font-size: 0.9rem;
  color: var(--auth-text-muted);
  margin: 0;
}


/* ── Steps Indicator ────────────────────────────────────────────────── */

.auth-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 32px;
}

.auth-step {
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-step__number {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--auth-border);
  color: var(--auth-text-muted);
  transition: all var(--auth-transition);
}

.auth-step--active .auth-step__number {
  background: var(--auth-blue);
  color: #FFFFFF;
  box-shadow: 0 2px 8px var(--auth-blue-glow);
}

.auth-step--done .auth-step__number {
  background: var(--auth-success);
  color: #FFFFFF;
}

.auth-step__label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--auth-text-muted);
  transition: color var(--auth-transition);
}

.auth-step--active .auth-step__label {
  color: var(--auth-text);
}

.auth-step--done .auth-step__label {
  color: var(--auth-success);
}

.auth-step__connector {
  width: 40px;
  height: 2px;
  background: var(--auth-border);
  margin: 0 8px;
  border-radius: 1px;
  transition: background var(--auth-transition);
}

.auth-step--done + .auth-step__connector,
.auth-step__connector--done {
  background: var(--auth-success);
}


/* ── Alert Messages ─────────────────────────────────────────────────── */

.auth-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--auth-radius);
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 20px;
  animation: auth-shake 0.4s ease-out;
}

@keyframes auth-shake {
  0%, 100% { transform: translateX(0); }
  15% { transform: translateX(-4px); }
  30% { transform: translateX(4px); }
  45% { transform: translateX(-3px); }
  60% { transform: translateX(2px); }
}

.auth-alert--error {
  background: var(--auth-danger-bg);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #991B1B;
}

.auth-alert--success {
  background: var(--auth-success-bg);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #065F46;
}

.auth-alert--info {
  background: var(--auth-blue-subtle);
  border: 1px solid rgba(37, 99, 235, 0.15);
  color: #1E40AF;
}

.auth-alert__icon {
  flex-shrink: 0;
  font-size: 1rem;
  margin-top: 1px;
}


/* ── Form Fields ────────────────────────────────────────────────────── */

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-field__label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--auth-text);
  letter-spacing: -0.01em;
}

.auth-field__label--required::after {
  content: " *";
  color: var(--auth-danger);
}

.auth-field__input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--auth-border);
  border-radius: var(--auth-radius);
  font-family: var(--auth-font);
  font-size: 0.9rem;
  color: var(--auth-text);
  background: var(--auth-white);
  outline: none;
  transition: all var(--auth-transition);
  -webkit-appearance: none;
}

.auth-field__input::placeholder {
  color: var(--auth-text-light);
}

.auth-field__input:hover {
  border-color: var(--auth-text-light);
}

.auth-field__input:focus {
  border-color: var(--auth-blue);
  box-shadow: 0 0 0 3px var(--auth-blue-glow);
}

.auth-field__input--error {
  border-color: var(--auth-danger);
}

.auth-field__input--error:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.auth-field__error {
  font-size: 0.78rem;
  color: var(--auth-danger);
  display: flex;
  align-items: center;
  gap: 4px;
}

.auth-field__hint {
  font-size: 0.76rem;
  color: var(--auth-text-light);
  line-height: 1.4;
}

.auth-field__row {
  display: flex;
  gap: 14px;
}

.auth-field__row > .auth-field {
  flex: 1;
}

/* Password toggle */
.auth-field__password-wrapper {
  position: relative;
}

.auth-field__password-wrapper .auth-field__input {
  padding-right: 44px;
}

.auth-field__password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--auth-text-light);
  padding: 4px;
  font-size: 1rem;
  transition: color var(--auth-transition);
}

.auth-field__password-toggle:hover {
  color: var(--auth-text-mid);
}


/* ── Buttons ────────────────────────────────────────────────────────── */

.auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--auth-radius);
  font-family: var(--auth-font);
  font-size: 0.9rem;
  font-weight: 650;
  cursor: pointer;
  transition: all var(--auth-transition);
  border: 1.5px solid transparent;
  text-decoration: none;
  letter-spacing: -0.01em;
  position: relative;
  overflow: hidden;
}

.auth-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, transparent 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--auth-transition);
}

.auth-btn:hover::after {
  opacity: 1;
}

.auth-btn--primary {
  background: var(--auth-blue);
  color: #FFFFFF;
  box-shadow: 0 2px 8px var(--auth-blue-glow);
}

.auth-btn--primary:hover {
  background: var(--auth-blue-hover);
  box-shadow: 0 4px 16px var(--auth-blue-glow);
  transform: translateY(-1px);
}

.auth-btn--primary:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px var(--auth-blue-glow);
}

.auth-btn--outline {
  background: var(--auth-white);
  color: var(--auth-text);
  border-color: var(--auth-border);
}

.auth-btn--outline:hover {
  background: var(--auth-bg);
  border-color: var(--auth-text-light);
}

.auth-btn--block {
  width: 100%;
}

.auth-btn--lg {
  padding: 14px 28px;
  font-size: 0.95rem;
}

.auth-btn--sm {
  padding: 8px 16px;
  font-size: 0.82rem;
}

.auth-btn--ghost {
  background: transparent;
  color: var(--auth-text-muted);
  padding: 8px 12px;
}

.auth-btn--ghost:hover {
  color: var(--auth-text);
  background: rgba(15, 23, 42, 0.04);
}

/* Loading state */
.auth-btn--loading {
  pointer-events: none;
  opacity: 0.8;
}

.auth-btn--loading .auth-btn__spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #FFFFFF;
  border-radius: 50%;
  animation: auth-spin 0.6s linear infinite;
}

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


/* ── Links & Extras ─────────────────────────────────────────────────── */

.auth-link {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--auth-blue);
  text-decoration: none;
  transition: color var(--auth-transition);
}

.auth-link:hover {
  color: var(--auth-blue-hover);
  text-decoration: underline;
}

.auth-link--muted {
  color: var(--auth-text-muted);
}

.auth-link--muted:hover {
  color: var(--auth-text);
}

.auth-extras {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 8px 0;
  color: var(--auth-text-light);
  font-size: 0.78rem;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--auth-border);
}

.auth-footer-text {
  text-align: center;
  font-size: 0.84rem;
  color: var(--auth-text-muted);
  margin-top: 12px;
}


/* ── Checkbox / Remember ────────────────────────────────────────────── */

.auth-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.auth-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  accent-color: var(--auth-blue);
}

.auth-checkbox__label {
  font-size: 0.84rem;
  color: var(--auth-text-mid);
}


/* ══════════════════════════════════════════════════════════════════════
   PLANES DE SUSCRIPCIÓN
   ══════════════════════════════════════════════════════════════════════ */

/* Toggle Mensual/Anual */
.plans-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 36px;
}

.plans-toggle__label {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--auth-text-muted);
  cursor: pointer;
  transition: color var(--auth-transition);
}

.plans-toggle__label--active {
  color: var(--auth-text);
  font-weight: 600;
}

.plans-toggle__switch {
  position: relative;
  width: 48px;
  height: 26px;
  background: var(--auth-border);
  border-radius: 999px;
  cursor: pointer;
  transition: background var(--auth-transition);
}

.plans-toggle__switch--active {
  background: var(--auth-blue);
}

.plans-toggle__switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: #FFFFFF;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  transition: transform var(--auth-transition);
}

.plans-toggle__switch--active::after {
  transform: translateX(22px);
}

.plans-toggle__badge {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--auth-success);
  background: var(--auth-success-bg);
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}


/* ── Grid de Plans ──────────────────────────────────────────────────── */

.plans-page {
  min-height: 100vh;
  background: var(--auth-bg);
  padding: 40px 24px;
}

.plans-page__header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 40px;
}

.plans-page__title {
  font-family: var(--auth-font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--auth-text);
  letter-spacing: -0.025em;
  margin: 0 0 10px;
}

.plans-page__subtitle {
  font-size: 0.95rem;
  color: var(--auth-text-muted);
  margin: 0;
  line-height: 1.6;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1060px;
  margin: 0 auto;
  align-items: start;
}


/* ── Plan Card ──────────────────────────────────────────────────────── */

.plan-card {
  background: var(--auth-white);
  border: 1.5px solid var(--auth-border);
  border-radius: var(--auth-radius-xl);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: all var(--auth-transition);
  position: relative;
}

.plan-card:hover {
  border-color: var(--auth-text-light);
  box-shadow: var(--auth-shadow-lg);
  transform: translateY(-2px);
}

.plan-card--featured {
  border-color: var(--auth-blue);
  box-shadow: 0 8px 30px -6px var(--auth-blue-glow);
}

.plan-card--featured:hover {
  border-color: var(--auth-blue);
  box-shadow: 0 12px 40px -6px var(--auth-blue-glow);
}

.plan-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--auth-blue);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.plan-card__name {
  font-family: var(--auth-font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--auth-text);
  margin-bottom: 6px;
}

.plan-card__desc {
  font-size: 0.82rem;
  color: var(--auth-text-muted);
  line-height: 1.5;
  margin-bottom: 20px;
}

.plan-card__price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 4px;
}

.plan-card__amount {
  font-family: var(--auth-font-display);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--auth-text);
  letter-spacing: -0.03em;
  line-height: 1;
}

.plan-card__currency {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--auth-text-mid);
}

.plan-card__period {
  font-size: 0.82rem;
  color: var(--auth-text-light);
  margin-bottom: 24px;
}

.plan-card__divider {
  height: 1px;
  background: var(--auth-border);
  margin: 0 0 20px;
}

.plan-card__features-title {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--auth-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.plan-card__features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.plan-card__feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.84rem;
  color: var(--auth-text-mid);
  line-height: 1.4;
}

.plan-card__feature-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--auth-success-bg);
  color: var(--auth-success);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 800;
  margin-top: 1px;
}

.plan-card__feature--disabled {
  color: var(--auth-text-light);
  text-decoration: line-through;
  opacity: 0.6;
}

.plan-card__feature--disabled .plan-card__feature-icon {
  background: rgba(148, 163, 184, 0.1);
  color: var(--auth-text-light);
}

.plan-card__cta {
  margin-top: auto;
}

.plan-card__cta .auth-btn {
  width: 100%;
}


/* ══════════════════════════════════════════════════════════════════════
   CHECKOUT / PAGO
   ══════════════════════════════════════════════════════════════════════ */

.checkout-layout {
  display: flex;
  min-height: 100vh;
  background: var(--auth-bg);
}

.checkout-main {
  flex: 1;
  padding: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.checkout-card {
  width: 100%;
  max-width: 520px;
}

.checkout-summary {
  width: 400px;
  background: var(--auth-navy);
  color: #FFFFFF;
  padding: 48px 36px;
  display: flex;
  flex-direction: column;
}

.checkout-summary__title {
  font-family: var(--auth-font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 28px;
  color: #FFFFFF;
}

.checkout-summary__plan {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--auth-radius-lg);
  padding: 20px;
  margin-bottom: 24px;
}

.checkout-summary__plan-name {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.checkout-summary__plan-period {
  font-size: 0.82rem;
  color: var(--auth-text-light);
}

.checkout-summary__row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.88rem;
}

.checkout-summary__row-label {
  color: var(--auth-text-light);
}

.checkout-summary__row-value {
  font-weight: 600;
  color: #F1F5F9;
}

.checkout-summary__total {
  display: flex;
  justify-content: space-between;
  padding: 16px 0 0;
  margin-top: 8px;
  font-size: 1rem;
}

.checkout-summary__total-label {
  font-weight: 700;
  color: #FFFFFF;
}

.checkout-summary__total-value {
  font-family: var(--auth-font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: #FFFFFF;
}

.checkout-summary__secure {
  margin-top: auto;
  padding-top: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: #64748B;
}


/* ══════════════════════════════════════════════════════════════════════
   SUCCESS / ÉXITO
   ══════════════════════════════════════════════════════════════════════ */

.auth-success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--auth-bg);
  padding: 40px 24px;
}

.auth-success-card {
  background: var(--auth-white);
  border: 1.5px solid var(--auth-border);
  border-radius: var(--auth-radius-xl);
  padding: 48px 40px;
  max-width: 500px;
  width: 100%;
  text-align: center;
  box-shadow: var(--auth-shadow-lg);
  animation: auth-fadeIn 0.6s ease-out;
}

.auth-success-card__icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--auth-success-bg);
  color: var(--auth-success);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 20px;
  animation: auth-bounceIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes auth-bounceIn {
  from {
    opacity: 0;
    transform: scale(0.3);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.auth-success-card__title {
  font-family: var(--auth-font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--auth-text);
  margin-bottom: 10px;
}

.auth-success-card__text {
  font-size: 0.9rem;
  color: var(--auth-text-muted);
  line-height: 1.65;
  margin-bottom: 28px;
}

.auth-success-card__credentials {
  background: var(--auth-bg);
  border: 1px solid var(--auth-border);
  border-radius: var(--auth-radius);
  padding: 16px 20px;
  margin-bottom: 28px;
  text-align: left;
}

.auth-success-card__cred-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 0.85rem;
}

.auth-success-card__cred-label {
  color: var(--auth-text-muted);
}

.auth-success-card__cred-value {
  font-weight: 600;
  font-family: var(--auth-font);
  color: var(--auth-text);
}


/* ══════════════════════════════════════════════════════════════════════
   DEBUG / DEV ROLE SELECTOR (Solo visible en DEBUG=True)
   ══════════════════════════════════════════════════════════════════════ */

.auth-dev-panel {
  background: rgba(245, 158, 11, 0.06);
  border: 1.5px dashed rgba(245, 158, 11, 0.3);
  border-radius: var(--auth-radius);
  padding: 16px 18px;
  margin-top: 8px;
}

.auth-dev-panel__title {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--auth-warning);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.auth-dev-panel__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.auth-dev-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 8px;
  background: var(--auth-white);
  border: 1px solid var(--auth-border);
  border-radius: var(--auth-radius);
  cursor: pointer;
  transition: all var(--auth-transition);
  font-family: var(--auth-font);
}

.auth-dev-btn:hover {
  border-color: var(--auth-blue);
  background: var(--auth-blue-subtle);
  transform: translateY(-1px);
}

.auth-dev-btn__badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.auth-dev-btn__badge--admin {
  background: rgba(239, 68, 68, 0.1);
  color: #DC2626;
}

.auth-dev-btn__badge--comercial {
  background: rgba(37, 99, 235, 0.1);
  color: #2563EB;
}

.auth-dev-btn__badge--tecnico {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
}

.auth-dev-btn__desc {
  font-size: 0.7rem;
  color: var(--auth-text-light);
}


/* ══════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .auth-sidebar {
    width: 40%;
    min-width: 340px;
    padding: 32px 30px;
  }

  .auth-hero__title {
    font-size: 1.7rem;
  }

  .plans-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .checkout-summary {
    width: 340px;
    padding: 40px 28px;
  }
}

@media (max-width: 900px) {
  .plans-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
  
  .plan-card--featured {
    order: -1;
  }
}

@media (max-width: 768px) {
  .auth-layout {
    flex-direction: column;
  }

  .auth-sidebar {
    width: 100%;
    min-width: unset;
    max-width: unset;
    padding: 28px 24px 32px;
    min-height: auto;
  }

  .auth-hero {
    display: none;
  }

  .auth-brand {
    margin-bottom: 0;
  }

  .auth-quote {
    display: none;
  }

  .auth-sidebar__footer {
    display: none;
  }

  .auth-main {
    padding: 28px 20px;
    align-items: flex-start;
  }

  .auth-card__logo-mobile {
    display: block;
  }

  .auth-card__title {
    font-size: 1.4rem;
  }

  .checkout-layout {
    flex-direction: column-reverse;
  }

  .checkout-summary {
    width: 100%;
    padding: 28px 24px;
  }

  .checkout-main {
    padding: 28px 20px;
  }

  .auth-field__row {
    flex-direction: column;
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .auth-main {
    padding: 20px 16px;
  }

  .auth-card__title {
    font-size: 1.25rem;
  }

  .auth-dev-panel__grid {
    grid-template-columns: 1fr;
  }

  .auth-steps {
    flex-wrap: wrap;
    gap: 4px;
  }

  .auth-step__label {
    display: none;
  }

  .plan-card {
    padding: 24px 20px;
  }
}


/* ── Modern Google OAuth Button & Auth Divider ───────────────────────── */
.btn-google-auth {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  width: 100% !important;
  padding: 11px 18px !important;
  background: #FFFFFF !important;
  color: #1E293B !important;
  border: 1.5px solid #E2E8F0 !important;
  border-radius: 10px !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02) !important;
  transition: all 0.18s ease !important;
  cursor: pointer !important;
  user-select: none !important;
  box-sizing: border-box !important;
}

.btn-google-auth:hover {
  background: #F8FAFC !important;
  border-color: #CBD5E1 !important;
  color: #0F172A !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06) !important;
  transform: translateY(-1px) !important;
}

.btn-google-auth:active {
  background: #F1F5F9 !important;
  transform: translateY(0) !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 20px 0;
  color: #94A3B8;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid #E2E8F0;
}

.auth-divider span {
  padding: 0 12px;
  white-space: nowrap;
}
