
body.auth-body{
  background:
    radial-gradient(120% 80% at 80% 0%, color-mix(in oklch, var(--brand-500) 8%, transparent), transparent 50%),
    radial-gradient(120% 80% at 0% 100%, color-mix(in oklch, var(--utilidad) 6%, transparent), transparent 50%),
    var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0;
}
.auth-main{
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 32px 80px;
}

/* ── Navbar superior (paridad con la landing, portada al design system de auth) ── */
.auth-nav{
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in oklch, var(--surface) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.auth-nav.is-scrolled{
  border-bottom-color: var(--border);
  box-shadow: 0 6px 20px -16px rgba(15,22,32,.5);
  background: color-mix(in oklch, var(--surface) 92%, transparent);
}
.auth-nav__inner{
  width: 100%; max-width: 1180px; margin: 0 auto;
  display: flex; align-items: center; gap: 24px;
  height: 72px; padding: 0 24px;
}
.auth-nav__logo{ display: inline-flex; align-items: center; gap: 11px; }
.auth-nav__badge{
  width: 38px; height: 38px; border-radius: 11px;
  background: linear-gradient(135deg, var(--brand-400), var(--brand-600));
  display: grid; place-items: center; flex: none;
  box-shadow: 0 4px 12px color-mix(in oklch, var(--brand-500) 30%, transparent), inset 0 1px 0 rgba(255,255,255,.25);
}
.auth-nav__badge img{ width: 23px; height: 23px; display: block; }
.auth-nav__word{ font-size: 20px; font-weight: 600; letter-spacing: -0.02em; color: var(--text); }
.auth-nav__word b{ font-weight: 600; }
.auth-nav__links{ display: flex; align-items: center; gap: 2px; margin-left: 6px; }
.auth-nav__links a{
  padding: 8px 12px; border-radius: var(--r-sm);
  font-size: 14px; color: var(--text-2); font-weight: 450;
  transition: background .15s, color .15s;
}
.auth-nav__links a:hover{ background: color-mix(in oklch, var(--brand-500) 8%, transparent); color: var(--brand-700); }
.auth-nav__spacer{ flex: 1; }
.auth-nav__actions{ display: flex; align-items: center; gap: 10px; }
.auth-nav__actions .btn{ height: 40px; padding: 0 16px; font-size: 14px; }
.auth-nav__login{
  font-size: 14px; font-weight: 500; color: var(--text);
  padding: 8px 13px; border-radius: var(--r-sm);
}
.auth-nav__login:hover{ background: var(--surface-3); }
.auth-nav__burger{
  display: none; width: 42px; height: 42px;
  border: 1px solid var(--border-strong); border-radius: var(--r-sm);
  background: var(--surface); align-items: center; justify-content: center;
  color: var(--text);
}
.auth-nav__burger svg{ width: 22px; height: 22px; }

.auth-mobile-menu{
  display: none; position: fixed; inset: 72px 0 0; z-index: 55;
  background: color-mix(in oklch, var(--surface) 98%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  padding: 18px 22px 36px; overflow-y: auto;
}
.auth-mobile-menu.is-open{ display: block; }
.auth-mobile-menu a.m-link{
  display: block; padding: 15px 6px;
  font-size: 17px; font-weight: 500; color: var(--text);
  border-bottom: 1px solid var(--border);
}
.auth-mobile-menu .m-actions{ display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
body.menu-open{ overflow: hidden; }

@media (max-width: 880px){
  .auth-nav__links{ display: none; }
  .auth-nav__login{ display: none; }
  .auth-nav__actions .btn{ display: none; }
  .auth-nav__burger{ display: inline-flex; }
}
.auth-shell{
  width: 100%;
  max-width: 1180px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 880px){ .auth-shell{ grid-template-columns: 1fr; max-width: 460px; } .auth-aside{ display: none; } }

.auth-aside{
  display: flex; flex-direction: column;
  gap: 28px;
  padding: 8px;
}
.auth-brand{
  display: flex; align-items: center; gap: 12px;
}
.auth-logo{
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand-400), var(--brand-600));
  display: grid; place-items: center;
  color: white; font-weight: 700; font-size: 20px;
  letter-spacing: -0.02em;
  box-shadow: 0 4px 12px color-mix(in oklch, var(--brand-500) 30%, transparent), inset 0 1px 0 rgba(255,255,255,.25);
}
.auth-logo img{ width: 117%; height: 117%; object-fit: contain; display: block; transform: translateY(-8%); }
.auth-brand-name{ font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.auth-brand-sub  { font-size: 12px; color: var(--text-3); letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; }

.auth-headline{
  font-size: 42px;
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}
.auth-headline span{
  color: var(--brand-600);
  background: linear-gradient(135deg, var(--brand-500), var(--green));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.auth-lede{
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-2);
  max-width: 460px;
  margin: 0;
}

.auth-ticker-mini{
  margin-top: 8px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  display: flex; gap: 18px;
  flex-wrap: wrap;
  overflow: hidden;
  font-size: 11.5px;
}
.auth-ticker-mini .it{ display: inline-flex; gap: 4px; }
.auth-ticker-mini .it span:first-child{ color: var(--text-3); }
.auth-ticker-mini .it span:last-child{ color: var(--text); font-family: var(--font-mono); font-weight: 600; }

.auth-card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow:
    0 1px 2px rgba(15,22,32,.04),
    0 12px 32px rgba(15,22,32,.08),
    0 32px 64px rgba(15,22,32,.06);
  padding: 36px;
  width: 100%;
  max-width: 460px;
  justify-self: center;
  animation: cardIn .42s cubic-bezier(.16,1,.3,1);
}
@keyframes cardIn{ from{ opacity: 0; transform: translateY(10px); } to{ opacity: 1; transform: none; } }
.auth-tabs{
  display: flex;
  background: var(--surface-3);
  padding: 4px;
  border-radius: var(--r-md);
  margin-bottom: 22px;
  font-size: 12.5px;
}
.auth-tab{
  flex: 1;
  padding: 7px 12px;
  text-align: center;
  border: 0;
  background: transparent;
  color: var(--text-3);
  font-weight: 500;
  border-radius: 7px;
  text-decoration: none;
  transition: all .15s ease;
}
.auth-tab.active{
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-1);
  font-weight: 600;
}

.auth-icon{
  width: 48px; height: 48px;
  border-radius: 12px;
  background: color-mix(in oklch, var(--brand-500) 12%, transparent);
  display: grid; place-items: center;
  color: var(--brand-600);
  margin: 0 0 16px;
}
.auth-icon.lg{ width: 56px; height: 56px; }

.auth-title{
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}
.auth-sub{
  font-size: 13.5px;
  color: var(--text-3);
  line-height: 1.5;
  margin: 0 0 24px;
}
.auth-sub b{ color: var(--text-2); font-family: var(--font-mono); font-weight: 600; }

.auth-form{ display: flex; flex-direction: column; gap: 14px; }
.auth-form .field input{
  padding: 11px 13px;
  font-size: 14px;
}
.auth-form .field-input-wrap{
  position: relative;
}
.auth-form .field-input-wrap input{ width: 100%; padding-right: 38px; }
.auth-form .field-input-wrap .toggle{
  position: absolute; top: 50%; right: 6px;
  transform: translateY(-50%);
  width: 30px; height: 30px;
  display: grid; place-items: center;
  background: transparent; border: 0;
  color: var(--text-3);
  border-radius: 6px;
  cursor: pointer;
}
.auth-form .field-input-wrap .toggle:hover{ background: var(--surface-3); color: var(--text); }

.auth-row{
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 2px;
}
.auth-check{
  display: flex; align-items: center; gap: 8px;
  font-size: 13px;
  color: var(--text-2);
  cursor: pointer;
}
.auth-check input{ width: 14px; height: 14px; accent-color: var(--brand-600); }
.auth-link{
  font-size: 13px;
  color: var(--brand-600);
  font-weight: 500;
}
.auth-link:hover{ color: var(--brand-700); text-decoration: underline; }

.btn-block{ width: 100%; justify-content: center; padding: 11px 16px; font-size: 14px; font-weight: 600; margin-top: 6px; }

.auth-note{
  padding: 12px 14px;
  background: color-mix(in oklch, var(--brand-500) 6%, transparent);
  border: 1px solid color-mix(in oklch, var(--brand-500) 18%, transparent);
  border-radius: var(--r-md);
  display: flex; gap: 10px;
  margin-top: 6px;
  font-size: 12.5px; color: var(--text-2); line-height: 1.5;
}
.auth-note .ic{ color: var(--brand-600); flex: none; margin-top: 1px; }

.auth-actions{ display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }

.auth-foot{
  margin-top: 22px;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-3);
}
.auth-foot a{ color: var(--brand-600); font-weight: 500; }

.auth-back{
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 18px;
}
.auth-back:hover{ color: var(--brand-700); }

.auth-form .errorlist{
  list-style: none; margin: 4px 0 0; padding: 0;
  color: var(--costos); font-size: 12px;
}
.auth-form .helptext{ font-size: 11.5px; color: var(--text-4); line-height: 1.45; }
.auth-form .helptext ul, .auth-form ul.helptext{ margin: 4px 0 0; padding-left: 16px; }
.auth-nonfield{
  margin: 0 0 14px; padding: 11px 14px; border-radius: var(--r-md);
  background: color-mix(in oklch, var(--costos) 9%, transparent);
  border: 1px solid color-mix(in oklch, var(--costos) 28%, transparent);
  color: color-mix(in oklch, var(--costos) 40%, #000); font-size: 13px; line-height: 1.5;
}
.auth-nonfield ul{ margin: 0; padding-left: 18px; }

.auth-foot-strip{
  position: fixed; bottom: 0; left: 0; right: 0;
  background: linear-gradient(90deg, var(--brand-700), var(--brand-500));
  padding: 8px 24px;
  color: rgba(255,255,255,.92);
  font-size: 12px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  z-index: 1;
}
.auth-foot-strip .mono{ color: white; font-weight: 600; }

@media (max-width: 480px){
  .auth-card{ padding: 26px 22px; }
  .auth-headline{ font-size: 32px; }
  .auth-foot-strip{ justify-content: center; text-align: center; }
}

.pwd-modal{ max-width: 480px; }
.pwd-success-icon{
  width: 64px; height: 64px;
  margin: 4px auto 14px;
  border-radius: 50%;
  background: color-mix(in oklch, var(--utilidad) 12%, transparent);
  display: grid; place-items: center;
  color: var(--utilidad);
  border: 2px solid color-mix(in oklch, var(--utilidad) 35%, transparent);
  animation: pulseGreen 2.2s ease-in-out infinite;
}
@keyframes pulseGreen{
  0%, 100%{ box-shadow: 0 0 0 0 color-mix(in oklch, var(--utilidad) 30%, transparent); }
  50%     { box-shadow: 0 0 0 10px color-mix(in oklch, var(--utilidad) 0%, transparent); }
}
.pwd-modal-head{ text-align: center; padding: 28px 24px 4px; }
.pwd-modal-title{ font-size: 20px; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 4px; }
.pwd-modal-sub  { font-size: 13px; color: var(--text-3); margin: 0; }

.pwd-warning{
  margin: 18px 24px 16px;
  padding: 12px 14px;
  background: color-mix(in oklch, var(--ppm) 14%, transparent);
  border: 1px solid color-mix(in oklch, var(--ppm) 28%, transparent);
  border-left: 3px solid var(--ppm);
  border-radius: var(--r-md);
  display: flex; gap: 10px;
  font-size: 12.5px;
  line-height: 1.5;
  color: color-mix(in oklch, var(--ppm) 35%, #000);
}
.pwd-warning b{ color: color-mix(in oklch, var(--ppm) 30%, #000); font-weight: 600; }
.pwd-warning .ic{ flex: none; color: var(--ppm); margin-top: 1px; }

.pwd-card{
  margin: 0 24px 18px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px;
}
.pwd-user{ display: flex; gap: 12px; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.pwd-user .av{
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #4C6EF5, #3854D9);
  color: white; font-weight: 600; font-size: 13px;
}
.pwd-user-name{ font-size: 13.5px; font-weight: 600; line-height: 1.2; }
.pwd-user-email{ font-size: 12px; color: var(--text-3); margin-top: 1px; font-family: var(--font-mono); }
.pwd-row{
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 14px;
  gap: 10px;
}
.pwd-pass{
  flex: 1;
  padding: 9px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-700);
  letter-spacing: 0.02em;
  user-select: all;
}
.pwd-copy{
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 14px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: all .14s ease;
  min-width: 92px;
  justify-content: center;
}
.pwd-copy:hover{ background: var(--surface-3); }
.pwd-copy.copied{ background: var(--utilidad); border-color: var(--utilidad); color: white; }
.pwd-modal-foot{ padding: 4px 24px 24px; display: flex; justify-content: center; }
.pwd-modal-foot .btn{ min-width: 160px; justify-content: center; padding: 10px 22px; font-weight: 600; }

.pwd-meta{
  margin: 0 24px 14px;
  display: flex; gap: 16px;
  font-size: 11.5px;
  color: var(--text-3);
}
.pwd-meta-it{ display: flex; align-items: center; gap: 5px; }
.pwd-meta-it b{ color: var(--text-2); font-weight: 600; }

.pwd-rules{
  margin: 8px 0 4px;
  padding: 12px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  display: flex; flex-direction: column; gap: 6px;
}
.pwd-rule{
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px;
  color: var(--text-3);
  transition: color .18s ease;
}
.pwd-rule .tick{
  width: 16px; height: 16px; flex: none;
  border-radius: 50%;
  background: var(--surface-3);
  border: 1px solid var(--border-strong);
  display: grid; place-items: center;
  color: transparent;
  transition: all .2s cubic-bezier(.16,1,.3,1);
}
.pwd-rule.ok{ color: color-mix(in oklch, var(--utilidad) 50%, #000); }
.pwd-rule.ok .tick{
  background: var(--utilidad);
  border-color: var(--utilidad);
  color: white;
  transform: scale(1.05);
}
.pwd-rule.ok .tick svg{ animation: tickPop .3s cubic-bezier(.16,1,.3,1); }
@keyframes tickPop{ 0%{ transform: scale(0); } 60%{ transform: scale(1.3); } 100%{ transform: scale(1); } }

.pwd-strength{
  display: flex; gap: 4px;
  margin-top: 8px;
}
.pwd-strength .seg{
  flex: 1; height: 4px;
  background: var(--surface-3);
  border-radius: 999px;
  transition: background .2s ease;
}
.pwd-strength.s1 .seg:nth-child(1){ background: var(--costos); }
.pwd-strength.s2 .seg:nth-child(-n+2){ background: var(--ppm); }
.pwd-strength.s3 .seg:nth-child(-n+3){ background: var(--brand-500); }
.pwd-strength.s4 .seg{ background: var(--utilidad); }
.pwd-strength-label{
  font-size: 11.5px;
  color: var(--text-3);
  margin-top: 5px;
  display: flex; justify-content: space-between;
}
.pwd-strength-label b{ font-weight: 600; }
