/* Sosiego · registro e ingreso */
.auth-body { background: var(--paper); }
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); }
.auth-main { display: flex; flex-direction: column; padding: 0; }
.auth-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 28px clamp(20px, 5vw, 64px) 0; }
.auth-alt { font-size: 15px; color: var(--ink-soft); text-decoration: none; }
.auth-alt b { color: var(--green-700); text-decoration: underline; text-underline-offset: 3px; }
.auth-card { width: min(600px, 100%); margin: auto 0; padding: 36px clamp(20px, 5vw, 64px) 40px; }
.auth-card h1 { font-size: clamp(34px, 4vw, 46px); margin-bottom: 12px; }
.auth-lead { color: var(--ink-soft); font-size: 17px; margin-bottom: 26px; }
.auth-card .field { margin-bottom: 18px; }
.auth-card .btn { width: 100%; margin-top: 6px; }
.auth-fine { margin-top: 18px; font-size: 13.5px; color: var(--ink-soft); }
.auth-fine a { color: var(--green-700); text-underline-offset: 3px; }
.auth-links { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.link-btn { background: none; border: 0; padding: 6px 0; color: var(--green-700); font: 600 15px var(--text); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-btn:disabled { color: var(--ink-soft); text-decoration: none; cursor: default; }
.msg-err { margin: 0 0 14px; padding: 12px 16px; border-radius: 12px; background: #fbe4df; color: #8d2b1b; font-size: 14.5px; }
.msg-err a { color: inherit; }
.msg-note { margin: 0 0 18px; padding: 12px 16px; border-radius: 12px; background: #fdf3d8; color: #6d4a00; font-size: 14.5px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.plan-pick { margin-bottom: 20px; padding: 12px 16px; border-radius: 14px; background: var(--mint-100); color: var(--green-700); font-weight: 600; font-size: 15px; }
.code-input { font: 700 34px/1 var(--display); letter-spacing: .35em; text-align: center; padding-block: 18px; }
.slug-box { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 14px; background: #fdfcf8; padding-right: 16px; transition: border-color .15s, box-shadow .15s; }
.slug-box:focus-within { border-color: var(--green-600); box-shadow: 0 0 0 4px var(--mint-200); }
.slug-box input { border: 0 !important; background: transparent !important; box-shadow: none !important; flex: 1; min-width: 0; text-align: right; }
.slug-box span { color: var(--ink-soft); white-space: nowrap; font-size: 16px; }
.slug-status { margin-top: 8px; font-size: 13.5px; color: var(--ink-soft); }
.slug-status.ok { color: var(--green-700); font-weight: 600; }
.slug-status.bad { color: #8d2b1b; font-weight: 600; }

.stepper { display: flex; gap: 8px; margin: 0 0 30px; padding: 0; list-style: none; }
.stepper li { flex: 1; display: flex; flex-direction: column; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.stepper li::before { content: ""; height: 5px; border-radius: 3px; background: var(--line); }
.stepper li i { display: none; }
.stepper li.on { color: var(--green-700); }
.stepper li.on::before, .stepper li.done::before { background: var(--green-600); }
.stepper li.done { color: var(--ink); }

.who { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; margin-bottom: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.who small { display: block; color: var(--ink-soft); font-size: 12.5px; }
.who b { display: block; font: 700 19px var(--display); letter-spacing: -.01em; }
.who span { color: var(--ink-soft); font-size: 13.5px; }

.bar-prog { height: 10px; border-radius: 999px; background: var(--sand); overflow: hidden; margin: 8px 0 24px; }
.bar-prog i { display: block; height: 100%; width: 4%; border-radius: 999px; background: linear-gradient(90deg, var(--green-600), var(--lime)); transition: width .6s ease; }
.prog-steps { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 12px; }
.prog-steps li { display: flex; align-items: center; gap: 14px; font-size: 16px; color: var(--ink-soft); }
.prog-steps li i { width: 26px; height: 26px; flex: none; border-radius: 50%; border: 2px solid var(--line); background: #fff; position: relative; }
.prog-steps li.doing { color: var(--ink); font-weight: 600; }
.prog-steps li.doing i { border-color: var(--green-600); border-top-color: transparent; animation: spin .9s linear infinite; }
.prog-steps li.done { color: var(--ink); }
.prog-steps li.done i { background: var(--green-600) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/15px no-repeat; border-color: var(--green-600); }
.prog-steps li.fail i { background: #d9573f; border-color: #d9573f; }
.ok-box { padding: 16px 18px; margin-bottom: 18px; border-radius: 16px; background: var(--mint-100); color: var(--green-900); font-size: 15px; line-height: 1.55; }
.ok-box b { display: block; margin-bottom: 4px; }
.auth-card .btn[href] { text-decoration: none; }

.auth-side { position: relative; overflow: hidden; background: var(--green-900); color: #fff; display: grid; place-items: center; padding: 48px; }
.side-blob { position: absolute; right: -140px; top: -140px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #d9f3a6, var(--lime) 50%, #a5d85a); opacity: .92; }
.side-card { position: relative; max-width: 420px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(6px); border-radius: 28px; padding: 36px; }
.side-card h2 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 20px; }
.side-card ul { display: grid; gap: 12px; font-size: 16px; color: rgba(255, 255, 255, .88); }
.side-card li { display: flex; gap: 12px; }
.side-card li::before { content: "✓"; color: var(--lime); font-weight: 700; }

.modal-back { position: fixed; inset: 0; z-index: 100; background: rgba(15, 30, 28, .55); display: grid; place-items: center; padding: 20px; backdrop-filter: blur(3px); }
.modal-back[hidden] { display: none; }
.modal-box { width: min(520px, 100%); max-height: 100%; overflow: auto; background: #fff; border-radius: 28px; padding: 32px; box-shadow: var(--shadow-float); }
.modal-box h2 { font-size: 30px; margin-bottom: 10px; }
.modal-box .btn { width: 100%; margin: 6px 0 4px; }
.modal-box .link-btn { display: block; margin: 8px auto 0; }
.cred { margin: 0 0 18px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.cred > div { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.cred > div:last-child { border-bottom: 0; }
.cred dt { grid-column: 1 / -1; font-size: 12.5px; color: var(--ink-soft); }
.cred dd { margin: 0; font: 600 16px/1.3 Consolas, ui-monospace, monospace; word-break: break-all; }
.cred .link-btn { margin: 0; align-self: center; font-size: 14px; }

@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .auth-card { padding-top: 24px; }
}
@media (max-width: 480px) {
  .stepper li span { font-size: 12px; }
  .code-input { font-size: 28px; }
  .slug-box span { font-size: 14px; }
}

.auth-card, .auth-card .step { text-align: left; }

/* En computador y tablet horizontal, la columna del formulario no se estira sin límite. */
@media (min-width: 901px) {
  /* La columna del formulario se ajusta a su contenido y el panel lateral ocupa el ancho restante. */
  .auth { grid-template-columns: 600px minmax(0, 1fr); }
  .auth-main { width: 100%; max-width: 600px; margin: 0; margin-left: 0; justify-self: start; }
}
