/* Cotizo — entrar / crear cuenta */

.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.auth-main {
  display: flex;
  flex-direction: column;
  padding: 28px 40px 40px;
}
.auth-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.auth-box {
  width: 100%;
  max-width: 400px;
  margin: auto;
  padding: 40px 0;
}
.auth-box:not([hidden]) > * { animation: fade-up .6s var(--ease) both; }
.auth-box:not([hidden]) > *:nth-child(2) { animation-delay: .05s; }
.auth-box:not([hidden]) > *:nth-child(3) { animation-delay: .1s; }
.auth-box:not([hidden]) > *:nth-child(4) { animation-delay: .15s; }
.auth-box:not([hidden]) > *:nth-child(5) { animation-delay: .2s; }
.auth-box:not([hidden]) > *:nth-child(n+6) { animation-delay: .25s; }
.auth-box h1 { font-size: 36px; letter-spacing: -0.05em; }
.auth-box .sub { margin-top: 10px; color: var(--ink-2); }

.oauth { display: grid; gap: 10px; margin-top: 32px; }
.oauth .btn { height: 46px; justify-content: center; }
.oauth svg { width: 18px; height: 18px; }

.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 26px 0;
  font-size: 13px;
  color: var(--muted);
}
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); }

.auth-form { display: grid; gap: 16px; }
.auth-form .btn-primary { height: 46px; margin-top: 4px; }
.row-between { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.link { color: var(--accent); text-decoration: none; font-weight: 500; }
.link:hover { text-decoration: underline; }
.small { font-size: 14px; color: var(--muted); }
.auth-alt { margin-top: 28px; font-size: 15px; color: var(--ink-2); }
.legal { margin-top: 18px; font-size: 13px; color: var(--muted); }

.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 70px; }
.pw-toggle {
  position: absolute; right: 6px; top: 6px; height: 30px;
  padding: 0 10px; border: 0; border-radius: 6px; background: transparent;
  font: 500 13px var(--sans); color: var(--muted); cursor: pointer;
}
.pw-toggle:hover { background: var(--paper-2); color: var(--ink); }

.meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 8px; }
.meter i { height: 4px; border-radius: 2px; background: var(--line); transition: background .2s; }
.meter[data-level="1"] i:nth-child(-n+1) { background: var(--danger); }
.meter[data-level="2"] i:nth-child(-n+2) { background: var(--warn); }
.meter[data-level="3"] i:nth-child(-n+3) { background: var(--accent-2); }
.meter[data-level="4"] i { background: var(--accent); }

/* Código de verificación */
.code-inputs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 28px; }
.code-inputs input {
  width: 100%;
  aspect-ratio: 1 / 1.15;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  background: var(--card);
  text-align: center;
  font: 500 26px var(--mono);
  color: var(--ink);
}
.code-inputs input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.code-inputs.bad input { border-color: var(--danger); animation: shake .3s; }
@keyframes shake { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
.email-chip { font-weight: 600; color: var(--ink); word-break: break-all; }

.demo-banner {
  margin-top: 20px;
  padding: 12px 14px;
  border: 1px dashed var(--warn);
  border-radius: var(--r);
  background: var(--warn-soft);
  color: var(--ink-2);
  font-size: 14px;
}
.demo-banner b { font-family: var(--mono); letter-spacing: .12em; }

.steps-mini { display: flex; gap: 6px; margin-bottom: 28px; }
.steps-mini i { height: 3px; flex: 1; border-radius: 2px; background: var(--line); }
.steps-mini i.on { background: var(--accent); }

.form-error {
  padding: 10px 12px;
  border-radius: var(--r-sm);
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 14px;
}

/* Panel lateral */
.auth-side {
  position: relative;
  background: #1f5c43;
  color: #eef0e8;
  padding: 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.auth-side h2 { font-size: clamp(30px, 3vw, 42px); max-width: 12em; color: #fbfaf5; letter-spacing: -0.03em; }
.auth-side p { margin-top: 16px; max-width: 30em; color: #c9d6cd; font-size: 16.5px; }
.side-docs { position: relative; height: 300px; margin-top: 40px; }
.side-doc {
  position: absolute;
  width: 250px;
  padding: 20px;
  border-radius: 4px;
  background: var(--card);
  color: var(--ink-2);
  font-size: 12.5px;
  box-shadow: 0 20px 40px -16px rgba(0,0,0,.45);
}
.side-doc b { display: block; font-weight: 600; font-size: 18px; letter-spacing: -.03em; color: var(--ink); }
.side-doc .num { display: block; margin-top: 18px; font-size: 18px; color: var(--ink); }
.side-doc small { font-family: var(--mono); color: var(--muted); }
.side-doc .bar { height: 7px; border-radius: 3px; background: var(--paper-2); margin-top: 8px; }
.side-doc:nth-child(1) { left: 0; top: 30px; --rot: -5deg; transform: rotate(var(--rot)); animation: pop .7s .3s var(--ease) both, float 7s 1s ease-in-out infinite; }
.side-doc:nth-child(2) { left: 150px; top: 0; --rot: 3deg; transform: rotate(var(--rot)); animation: pop .7s .5s var(--ease) both, float 7s 2.5s ease-in-out infinite; }
.auth-side > div:first-child { animation: fade-up .8s .1s var(--ease) both; }

@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .auth-main { padding: 20px 16px 32px; }
  .auth-box { padding: 32px 0; }
}
