/* Registro, ingreso y recuperación: la misma estética del inicio.
   Marco ámbar como el pie, panel carbón partido en dos, titular enorme en mayúsculas,
   una tarjeta que se llena sola, placas con esquinas y botones achaflanados. */
body:has(.auth-split) { background: #FFC107; padding: 12px; }
.auth-split { --a-carbon: #222325; --a-green: #0E9B4D; --a-amber: #FFC107; position: relative; isolation: isolate; min-height: calc(100dvh - 24px); display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); padding: 0; place-items: stretch; overflow: clip; background: var(--a-carbon); }

/* ---------- Lado de la marca ---------- */
.auth-side { position: sticky; top: 12px; align-self: start; height: calc(100dvh - 24px); isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; padding: clamp(28px, 4vw, 56px); background:
  radial-gradient(ellipse 70% 55% at 90% 0%, rgba(14, 155, 77, .42), transparent 70%),
  radial-gradient(ellipse 60% 50% at 0% 100%, rgba(255, 193, 7, .2), transparent 70%), #1c1d1f; }
.as-logo img { display: block; height: 30px; width: auto; }
.as-eyebrow { margin: 0 0 14px; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--a-amber); }
.as-title { margin: 0; font-size: clamp(2.6rem, 5.2vw, 5.4rem); font-weight: 800; line-height: .92; letter-spacing: -.045em; text-transform: uppercase; color: #fff; }
.as-title b { color: var(--a-amber); } .as-title span { color: #fff; }
.as-hero { position: relative; z-index: 2; }
.as-rings { position: absolute; z-index: -1; right: -18%; top: 18%; width: 78%; aspect-ratio: 1; pointer-events: none; }
.as-rings i { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .13); animation: as-spin 60s linear infinite; }
.as-rings i:nth-child(2) { inset: 14%; border-style: dashed; animation-duration: 90s; animation-direction: reverse; }
.as-rings i:nth-child(3) { inset: 30%; animation-duration: 45s; }
.as-rings i::after { content: ''; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; background: var(--a-amber); transform: translateX(-50%) rotate(45deg); }
@keyframes as-spin { to { transform: rotate(360deg); } }

/* Tarjeta que se llena sola */
.as-stage { position: relative; z-index: 2; width: min(100%, 420px); }
.as-card { position: relative; padding: 18px 20px 16px; border-radius: 20px; background: linear-gradient(145deg, #3a3c40, #232426); border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 30px 70px rgba(0, 0, 0, .5); transform: rotate(-3deg); transition: transform .5s cubic-bezier(.2, .8, .2, 1); color: #fff; }
.auth-split:hover .as-card { transform: rotate(-1deg) translateY(-4px); }
.as-top { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.as-top b { flex: 1; font-weight: 800; }
.as-dot { width: 28px; height: 28px; border-radius: 50%; background: var(--a-amber); box-shadow: 0 0 0 4px rgba(255, 193, 7, .2); }
.as-count { text-align: right; font-size: 11px; font-weight: 700; color: var(--a-amber); line-height: 1.1; }
.as-count em { display: block; font-style: normal; font-size: 18px; color: #fff; }
.as-stamps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 18px 0 14px; }
.as-stamps i { aspect-ratio: 1; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .45); animation: as-off 9s infinite; }
.as-stamps i:nth-child(1) { animation-name: as-s1; } .as-stamps i:nth-child(2) { animation-name: as-s2; } .as-stamps i:nth-child(3) { animation-name: as-s3; }
.as-stamps i:nth-child(4) { animation-name: as-s4; } .as-stamps i:nth-child(5) { animation-name: as-s5; }
@keyframes as-s1 { 0%, 5% { background: transparent; transform: scale(1); } 9% { transform: scale(1.25); } 12%, 90% { background: var(--a-amber); border-color: var(--a-amber); transform: scale(1); } 96%, 100% { background: transparent; border-color: rgba(255, 255, 255, .45); } }
@keyframes as-s2 { 0%, 14% { background: transparent; transform: scale(1); } 18% { transform: scale(1.25); } 21%, 90% { background: var(--a-amber); border-color: var(--a-amber); transform: scale(1); } 96%, 100% { background: transparent; border-color: rgba(255, 255, 255, .45); } }
@keyframes as-s3 { 0%, 23% { background: transparent; transform: scale(1); } 27% { transform: scale(1.25); } 30%, 90% { background: var(--a-amber); border-color: var(--a-amber); transform: scale(1); } 96%, 100% { background: transparent; border-color: rgba(255, 255, 255, .45); } }
@keyframes as-s4 { 0%, 32% { background: transparent; transform: scale(1); } 36% { transform: scale(1.25); } 39%, 90% { background: var(--a-amber); border-color: var(--a-amber); transform: scale(1); } 96%, 100% { background: transparent; border-color: rgba(255, 255, 255, .45); } }
@keyframes as-s5 { 0%, 41% { background: transparent; transform: scale(1); } 45% { transform: scale(1.3); } 48%, 90% { background: var(--a-amber); border-color: var(--a-amber); transform: scale(1); } 96%, 100% { background: transparent; border-color: rgba(255, 255, 255, .45); } }
.as-foot { display: flex; justify-content: space-between; gap: 12px; font-size: 10px; font-weight: 700; color: var(--a-amber); }
.as-foot span { display: grid; } .as-foot b { font-size: 14px; color: #fff; }
.as-note { position: absolute; left: 8%; right: -4%; bottom: -34px; padding: 11px 14px; border-radius: 14px; background: #f6f6f4; color: #222325; font-size: 13px; line-height: 1.3; box-shadow: 0 18px 40px rgba(0, 0, 0, .45); opacity: 0; transform: translateY(14px); animation: as-note 9s infinite; }
.as-note b { margin-right: 6px; }
@keyframes as-note { 0%, 50% { opacity: 0; transform: translateY(14px); } 56%, 90% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: translateY(14px); } }
.as-list { position: relative; z-index: 2; list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 8px; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: -.01em; }
.as-list li { display: flex; align-items: center; gap: 10px; }
.as-list li::before { content: ''; width: 9px; height: 9px; background: var(--a-amber); transform: rotate(45deg); flex: none; }

/* ---------- Lado del formulario ---------- */
.auth-split .auth-box { align-self: center; justify-self: center; width: 100%; max-width: 480px; margin: 0; padding: clamp(24px, 4vw, 52px) clamp(18px, 3vw, 40px); gap: 20px; position: relative; z-index: 2; }
.auth-split .auth-box > .brand { display: none; }
.auth-split .back-home { background: rgba(255, 255, 255, .04); }
.auth-split .card { position: relative; border-radius: 0; padding: 28px 26px 26px; background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .025)); border: 1px solid rgba(255, 255, 255, .12); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%); }
.auth-split .card::before, .auth-split .card::after { content: ''; position: absolute; width: 14px; height: 14px; border: 0 solid var(--a-amber); pointer-events: none; }
.auth-split .card::before { top: 0; left: 0; border-width: 2px 0 0 2px; }
.auth-split .card::after { right: 0; top: 0; border-width: 2px 2px 0 0; }
.auth-split h1 { font-size: clamp(1.9rem, 3vw, 2.6rem); font-weight: 800; line-height: .98; letter-spacing: -.04em; text-transform: uppercase; }
.auth-split h1::after { content: '.'; color: var(--a-amber); }
.auth-split .card h1 + p { margin-top: 10px; font-size: 14px; }
.auth-split label.field { font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #d4d6d9; }
.auth-split label.field .hint { text-transform: none; letter-spacing: 0; }
.auth-split input { min-height: 48px; border-radius: 0; background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .16); border-bottom-color: rgba(255, 255, 255, .4); text-transform: none; letter-spacing: 0; font-weight: 400; transition: border-color .2s, background-color .2s, box-shadow .2s; }
.auth-split input:hover { border-color: rgba(255, 255, 255, .35); }
.auth-split input:focus { outline: none; border-color: var(--a-amber); background: rgba(0, 0, 0, .5); box-shadow: 0 0 0 3px rgba(255, 193, 7, .2); }
.auth-split .btn-primary { min-height: 54px; border-radius: 0; border: 0; background: var(--a-amber); color: #222325; font-size: 15px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; clip-path: polygon(0 0, 100% 0, 100% 70%, 94% 100%, 0 100%); box-shadow: none; position: relative; overflow: hidden; transition: background-color .25s, color .25s, letter-spacing .25s; }
.auth-split .btn-primary::after { content: '→'; margin-left: 10px; transition: transform .25s; }
.auth-split .btn-primary:hover { background: #fff; letter-spacing: .08em; transform: none; box-shadow: none; }
.auth-split .btn-primary:hover::after { transform: translateX(5px); }
.auth-split .btn-primary:disabled { opacity: .6; }
.auth-split .auth-foot { font-size: 14px; }
.auth-split .auth-foot a { font-weight: 800; }
.auth-split .captcha { border-radius: 0; background: rgba(0, 0, 0, .3); border: 1px solid rgba(255, 255, 255, .12); }
.auth-split .form-error { padding: 10px 12px; border-left: 3px solid var(--bad); background: rgba(230, 0, 92, .12); }

/* Entrada suave */
.auth-split .auth-box > * { animation: as-in .6s cubic-bezier(.2, .8, .2, 1) both; }
.auth-split .auth-box > :nth-child(2) { animation-delay: .05s; } .auth-split .auth-box > :nth-child(3) { animation-delay: .12s; } .auth-split .auth-box > :nth-child(4) { animation-delay: .2s; } .auth-split .auth-box > :nth-child(5) { animation-delay: .28s; }
.as-hero > * { animation: as-in .7s cubic-bezier(.2, .8, .2, 1) both; } .as-hero > :nth-child(2) { animation-delay: .1s; }
@keyframes as-in { from { opacity: 0; transform: translateY(16px); } }

/* ---------- Tablet y teléfono ---------- */
@media (max-width: 960px) {
  body:has(.auth-split) { padding: 8px; }
  .auth-split { grid-template-columns: minmax(0, 1fr); min-height: calc(100dvh - 16px); align-content: start; }
  .auth-side { position: relative; top: auto; height: auto; padding: 22px 22px 26px; gap: 18px; }
  .as-stage, .as-list { display: none; }
  .as-title { font-size: clamp(2rem, 9vw, 3.2rem); }
  .as-eyebrow { margin-bottom: 8px; font-size: 12px; }
  .as-rings { width: 120%; right: -50%; top: -10%; opacity: .7; }
  .auth-split .auth-box { padding: 20px 14px 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .as-rings i, .as-stamps i, .as-note, .auth-split .auth-box > *, .as-hero > * { animation: none !important; }
  .as-stamps i { background: var(--a-amber); border-color: var(--a-amber); } .as-stamps i:nth-child(n+4) { background: transparent; border-color: rgba(255, 255, 255, .45); }
  .as-note { opacity: 1; transform: none; }
}

/* Ojito de las contraseñas */
.pw-wrap { position: relative; display: block; }
.pw-wrap input { width: 100%; padding-right: 48px; }
.pw-eye { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 10px; background: transparent; color: #b9bcc0; cursor: pointer; transition: color .2s, background .2s; }
.pw-eye:hover, .pw-eye:focus-visible { color: #fff; background: rgba(255, 255, 255, .1); }
.pw-eye[aria-pressed=true] { color: #fff; }
