/* Pantalla de acceso: ocupa toda la pantalla, dividida en panel de marca y formulario */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(380px, 1fr); background: var(--surface); }
.auth-brand {
  position: relative; background: #13233a; color: #d4deea; padding: 48px 56px; display: flex; flex-direction: column; overflow: hidden;
}
.auth-brand::after { /* cinta de señalización en el borde */
  content: ''; position: absolute; top: 0; right: 0; bottom: 0; width: 14px;
  background: repeating-linear-gradient(-45deg, #f2b705 0 14px, #13233a 14px 28px);
}
.auth-brand .logo { display: flex; align-items: center; gap: 12px; }
.auth-brand .logo .brand-mark { width: 44px; height: 44px; font-size: 1.4rem; }
.auth-brand .logo span { font-family: var(--font-cond); font-weight: 700; font-size: 1.5rem; letter-spacing: .08em; color: #fff; }
.auth-partner-brand { display: flex; align-items: center; margin-left: 8px; padding-left: 20px; border-left: 1px solid rgba(255,255,255,.25); }
.auth-partner-brand img { display: block; width: 132px; height: auto; filter: brightness(0) invert(1); }
.auth-hero { margin-top: auto; margin-bottom: auto; padding: 40px 0; max-width: 560px; }
.auth-hero h1 { color: #fff; font-size: clamp(2rem, 3.6vw, 3.1rem); line-height: 1.05; font-weight: 700; margin-bottom: 14px; }
.auth-hero p { color: #9fb0c6; font-size: 1.02rem; max-width: 46ch; }
.cycle { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 8px; }
.cycle li { display: grid; grid-template-columns: 54px 1fr; align-items: stretch; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 8px; overflow: hidden; }
.cycle .n { background: #f2b705; color: #13233a; font-family: var(--font-cond); font-weight: 700; font-size: 1.15rem; display: grid; place-items: center; }
.cycle .c { padding: 9px 14px; }
.cycle .c b { color: #fff; font-weight: 600; display: block; font-size: .95rem; }
.cycle .c small { color: #8ea0b8; font-size: .8rem; }
.auth-foot { font-size: .78rem; color: #6f839d; }

.auth-form { display: flex; align-items: center; justify-content: center; padding: 40px 28px; background: var(--surface); }
.auth-card { width: 100%; max-width: 410px; }
.auth-form-login { align-items: flex-start; padding-top: 68px; padding-bottom: 32px; }
.auth-login-content { width: 100%; max-width: 480px; margin: auto; }
.auth-features { margin-top: 34px; }
.auth-features-heading { margin-bottom: 14px; }
.auth-features-eyebrow { color: var(--muted); font-size: .68rem; font-weight: 700; letter-spacing: .12em; }
.auth-features-heading h2 { margin: 4px 0 0; font-size: 1.2rem; }
.auth-feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.auth-feature { min-width: 0; padding: 14px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
.auth-feature-icon { display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 10px; border-radius: 9px; background: var(--signal-soft); color: var(--signal-ink); font-size: 1rem; }
.auth-feature h3 { margin: 0 0 5px; font: 600 .82rem/1.2 var(--font); color: var(--ink); }
.auth-feature p { margin: 0; color: var(--muted); font-size: .74rem; line-height: 1.45; }
.auth-card h2 { font-size: 1.7rem; margin-bottom: 4px; }
.auth-card .lead { color: var(--muted); font-size: .95rem; margin-bottom: 26px; }
.auth-card .form-control { height: 46px; }
.auth-card .btn-lg { height: 48px; font-size: 1rem; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .8rem; margin: 20px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.btn-social { display: flex; align-items: center; justify-content: center; gap: 10px; height: 44px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); border-radius: var(--radius-sm); font-weight: 500; width: 100%; }
.btn-social:hover { background: var(--surface-2); }
.btn-social svg { width: 18px; height: 18px; }
.auth-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: .88rem; margin-top: 22px; }
.auth-links a { color: var(--info); text-decoration: none; }
.theme-float { position: absolute; top: 16px; right: 16px; }
.steps { display: flex; gap: 6px; margin-bottom: 20px; }
.steps span { flex: 1; height: 4px; border-radius: 2px; background: var(--surface-3); }
.steps span.on { background: var(--signal); }
.ruc-toggle { display: flex; gap: 4px; background: var(--surface-3); padding: 4px; border-radius: 8px; margin-bottom: 12px; }
.ruc-toggle label { flex: 1; text-align: center; padding: 6px; border-radius: 6px; cursor: pointer; font-size: .86rem; color: var(--muted); }
.ruc-toggle input { display: none; }
.ruc-toggle input:checked + label { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: var(--shadow); }

@media (max-width: 991.98px) {
  .auth { grid-template-columns: 1fr; }
  .auth-brand { padding: 22px 22px 26px; }
  .auth-brand::after { top: auto; left: 0; width: auto; height: 10px; background: repeating-linear-gradient(-45deg, #f2b705 0 10px, #13233a 10px 20px); }
  .auth-brand .logo { gap: 9px; }
  .auth-brand .logo .brand-mark { width: 38px; height: 38px; }
  .auth-brand .logo span { font-size: 1.3rem; }
  .auth-partner-brand { margin-left: 3px; padding-left: 12px; }
  .auth-partner-brand img { width: 112px; }
  .auth-hero { padding: 18px 0 0; margin: 0; }
  .auth-hero h1 { font-size: 1.7rem; }
  .auth-hero p, .cycle, .auth-foot { display: none; }
  .auth-form { padding: 28px 20px 40px; align-items: flex-start; }
  .auth-form-login { padding-top: 28px; }
  .auth-login-content { max-width: 500px; }
  .auth-features { margin-top: 30px; }
}

@media (max-width: 575.98px) {
  .auth-partner-brand img { width: 96px; }
  .auth-feature-grid { grid-template-columns: 1fr; }
  .auth-feature { display: grid; grid-template-columns: 34px 1fr; column-gap: 10px; padding: 12px; }
  .auth-feature-icon { grid-row: span 2; margin: 0; }
  .auth-feature h3 { align-self: end; }
}
