/* Pantalla de ingreso (v2): formulario claro a la izquierda, escenario azul profundo con video y piezas de vidrio a la derecha. */
.auth { display: grid; grid-template-columns: minmax(0, 44fr) minmax(0, 56fr); min-height: 100vh; min-height: 100dvh; }

.auth__form { display: flex; flex-direction: column; padding: 28px clamp(24px, 5vw, 84px) 26px; }
.auth__card { width: min(440px, 100%); margin: auto; padding: 40px 0; display: grid; gap: 28px; }
.auth__head { display: grid; gap: 14px; }
.auth__head h1 { font-size: clamp(40px, 4.5vw, 58px); }
.auth__head p { color: var(--ink-2); font-size: 17px; font-weight: 400; max-width: 36ch; }

.tabs { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 5px; background: var(--tint); border-radius: 16px; }
.tabs::before { content: ""; position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 12px; background: var(--sheet); box-shadow: 0 1px 2px rgba(10, 18, 90, .08), 0 8px 18px -10px rgba(10, 18, 90, .35); transition: transform .35s cubic-bezier(.3, .8, .25, 1); }
.tabs[data-mode="reg"]::before { transform: translateX(100%); }
.tabs button { position: relative; z-index: 1; min-height: 46px; border: 0; border-radius: 12px; background: transparent; font-weight: 700; color: var(--ink-3); cursor: pointer; transition: color .2s; }
.tabs button[aria-selected="true"] { color: var(--ink); }

.auth form { display: grid; gap: 18px; }
.pw { position: relative; }
.pw .input { padding-right: 84px; }
.pw button { position: absolute; right: 7px; top: 7px; bottom: 7px; padding: 0 14px; border: 0; border-radius: 10px; background: transparent; color: var(--royal); font-weight: 700; font-size: 13.5px; cursor: pointer; }
.pw button:hover { background: var(--tint); }
.auth__forgot { justify-self: start; padding: 4px 0; border: 0; background: transparent; color: var(--royal); font-weight: 700; font-size: 13.5px; cursor: pointer; }
.auth__forgot:hover { text-decoration: underline; text-underline-offset: 3px; }
.auth__legal { font-size: 13.5px; color: var(--ink-3); font-weight: 400; }
.auth__demo { font-size: 13.5px; font-weight: 400; }
.auth__demo code { font-family: var(--mono); font-size: 12.5px; background: var(--tint); padding: 2px 7px; border-radius: 6px; color: var(--royal-deep); }

.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; padding-top: 20px; border-top: 1px solid var(--line); list-style: none; margin: 0; padding-left: 0; }
.auth__links { font-size: 14.5px; color: var(--ink-2); font-weight: 400; }
.auth__links a { font-weight: 700; }
.trust li { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.trust svg { width: 18px; height: 18px; flex: none; color: var(--royal); }

/* ---- Escenario ---- */
.stage {
  position: relative; margin: 14px; border-radius: 34px; overflow: hidden; isolation: isolate; color: #fff; min-height: 560px;
  background:
    radial-gradient(85% 60% at 88% 0%, #3d5cff 0%, rgba(61, 92, 255, 0) 62%),
    radial-gradient(70% 55% at 0% 100%, #0b2bfa 0%, rgba(11, 43, 250, 0) 60%),
    linear-gradient(160deg, var(--night-2) 0%, var(--night) 70%);
}
.stage__guil { position: absolute; inset: 0; z-index: 0; background: url("/media/img/guilloche.svg") 50% 42% / 150% auto no-repeat; opacity: .55; }
.stage__frame {
  position: absolute; z-index: 1; left: 50%; top: 44%; translate: -50% -50%; height: min(66%, 640px); aspect-ratio: 3 / 4; border-radius: 28px; overflow: hidden; background: #071066;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .25), 0 50px 90px -30px rgba(0, 0, 40, .9), 0 0 140px -10px rgba(74, 104, 255, .7);
}
.clip { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s ease; }
.clip.is-on { opacity: 1; }
.stage__frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 10, 58, 0) 55%, rgba(5, 10, 58, .55) 100%); pointer-events: none; }

.stage__chip { position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; will-change: transform; transition: transform .35s ease-out; }
.stage__chip b { display: block; font-weight: 700; font-size: 14.5px; line-height: 1.2; }
.stage__chip span { display: block; font-size: 12.5px; color: rgba(255, 255, 255, .78); }
.stage__chip svg, .stage__chip .ic { width: 40px; height: 40px; flex: none; }
.stage__chip .ic { border-radius: 12px; background: rgba(255, 255, 255, .92); color: var(--royal); display: grid; place-items: center; font-family: var(--display); font-weight: 600; font-size: 15px; }
.stage__chip--a { right: 7%; top: 13%; }
.stage__chip--b { left: 6%; top: 52%; }

.stage__cap { position: absolute; z-index: 3; left: 50%; translate: -50% 0; bottom: 4.5%; width: min(470px, 82%); padding: 20px 22px 18px; display: grid; gap: 6px; }
.stage__cap .mono { color: rgba(255, 255, 255, .75); }
.stage__title { font-family: var(--display); font-weight: 600; font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -0.015em; line-height: 1.12; }
.stage__text { color: rgba(255, 255, 255, .86); font-weight: 400; font-size: 15px; min-height: 3em; }
.stage__ticks { display: flex; gap: 6px; margin-top: 8px; align-items: center; }
.stage__ticks i { flex: 1; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .26); overflow: hidden; }
.stage__ticks i b { display: block; height: 100%; width: 100%; background: #fff; transform: scaleX(0); transform-origin: left; }
.stage__pause { flex: none; width: 34px; height: 34px; margin-left: 8px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer; display: grid; place-items: center; }
.stage__pause:hover { background: rgba(255, 255, 255, .24); }
.stage__mark { display: none; }

@media (max-height: 760px) and (min-width: 960px) { .stage__frame { top: 40%; height: 58%; } .stage__text { min-height: 0; } }

@media (max-width: 959px) {
  .auth { grid-template-columns: 1fr; }
  .stage { order: -1; min-height: 168px; margin: 10px; border-radius: 26px; }
  .stage__frame, .stage__cap, .stage__chip { display: none; }
  .stage__guil { background-size: 190% auto; }
  .stage__mark { display: block; position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 76px; filter: drop-shadow(0 12px 18px rgba(0, 0, 40, .5)); }
  .auth__form { padding: 22px 22px 26px; }
  .auth__card { padding: 26px 0 30px; }
}
