/* Auth pages (login, password help) in the cinema style. Loads after cinema.css and cinema-pages.css. */
body:has(.cn-auth) { background: #06040d; }
.cn-auth { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }

/* ---------- left: owl stage ---------- */
.cn-auth__stage { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; padding: 2rem clamp(2rem, 4vw, 3.5rem); border-right: 1px solid var(--line); }
.cn-auth__bg { position: absolute; inset: 0; z-index: -2; background: var(--auth-bg) center 35% / cover no-repeat; opacity: .38; }
.cn-auth__bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 60% at 60% 75%, rgba(124,77,255,.28), transparent 70%), linear-gradient(180deg, rgba(6,4,13,.55) 0%, rgba(6,4,13,.35) 45%, rgba(6,4,13,.92) 100%); }
.cn-auth__stage .cn-rays { z-index: -1; }
.cn-auth__brand { display: inline-flex; align-items: center; gap: .6rem; width: fit-content; color: #fff; text-decoration: none; font: 700 1.15rem var(--display); letter-spacing: -.01em; }
.cn-auth__brand:hover { color: #fff; }
.cn-auth__brand img { width: 28px; height: 28px; border-radius: 8px; }
.cn-auth__brand--mobile { display: none; }
.cn-auth__pitch { position: relative; z-index: 1; margin-top: clamp(2.5rem, 9vh, 6rem); max-width: 34rem; }
.cn .cn-auth__claim { font: 700 clamp(1.8rem, 2.6vw, 2.6rem)/1.06 var(--display); color: var(--text); letter-spacing: -.01em; margin: 0 0 2rem; }
.cn-auth__claim span { display: block; color: var(--muted); font-weight: 300; }
.cn-auth__stats { list-style: none; margin: 0; padding: 0; display: flex; gap: 2.5rem; }
.cn-auth__stats li { display: grid; gap: .3rem; padding-left: 1rem; border-left: 1px solid rgba(255,255,255,.18); }
.cn-auth__stats b { font: 700 1.6rem var(--display); color: #fff; }
.cn-auth__stats span { font-family: var(--mono); font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.cn-auth__owl { position: absolute; z-index: 0; right: -2%; bottom: -4%; height: min(64%, 40rem); width: auto; max-width: 78%; object-fit: contain; object-position: right bottom; pointer-events: none; user-select: none; }

/* ---------- right: form panel ---------- */
.cn-auth__panel { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 3rem clamp(1.25rem, 4vw, 3.5rem) 2rem; background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(124,77,255,.14), transparent 70%), var(--bg); }
.cn-auth__card { width: 100%; max-width: 27rem; padding: clamp(1.75rem, 3.5vw, 2.6rem); border-radius: 24px; }
.cn-auth__card h1 { font-size: clamp(1.9rem, 3vw, 2.5rem); font-weight: 700; line-height: 1.05; margin: 0 0 .7rem; }
.cn-auth__card h1 span { color: var(--muted); font-weight: 300; }
.cn .cn-auth__sub { margin: 0 0 1.8rem; font-size: .95rem; line-height: 1.6; }
.cn-auth__card form { margin: 0; }
.cn-auth__card .cn-btn--block { margin-top: .6rem; padding: 1rem 1.6rem; font-size: .95rem; }
.cn-auth__labelrow { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.cn-auth__labelrow a { font-size: .8rem; color: rgba(243,240,255,.75); text-decoration: none; border-bottom: 1px solid rgba(25,230,255,.5); }
.cn-auth__labelrow a:hover { color: #fff; border-color: var(--cyan); }
.cn-auth__pw { position: relative; }
.cn-auth__pw .cn-input { padding-right: 3rem; }
.cn-auth__reveal { position: absolute; top: 50%; right: .45rem; transform: translateY(-50%); width: 2.3rem; height: 2.3rem; display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; transition: color .2s, background .2s; }
.cn-auth__reveal:hover, .cn-auth__reveal[aria-pressed="true"] { color: #fff; background: rgba(255,255,255,.06); }
.cn-auth__reveal:focus-visible { outline: 2px solid var(--cyan); outline-offset: 1px; }
.cn .cn-auth__alt { margin: 1.5rem 0 0; text-align: center; font-size: .88rem; }
.cn-auth__alt a { white-space: nowrap; color: #fff; text-decoration: none; border-bottom: 1px solid var(--cyan); }
.cn-auth__alt a:hover { color: var(--cyan); }
.cn-auth__alt a.cn-auth__back { border-bottom: 0; color: rgba(243,240,255,.75); }
.cn-auth__alt a.cn-auth__back:hover { color: #fff; }
.cn-auth .cn-alert { font-size: .88rem; }
.cn .cn-auth__legal { display: flex; gap: 1.4rem; margin: 2rem 0 0; font-family: var(--mono); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; }
.cn-auth__legal a { color: rgba(243,240,255,.45); text-decoration: none; }
.cn-auth__legal a:hover { color: #fff; }

/* ---------- responsive ---------- */
@media (max-width: 991.98px) {
  .cn-auth { grid-template-columns: 1fr; }
  .cn-auth__stage { display: none; }
  .cn-auth__panel { justify-content: flex-start; padding-top: 2rem; min-height: 100vh; min-height: 100dvh; background: radial-gradient(ellipse 90% 40% at 50% 0%, rgba(124,77,255,.22), transparent 70%), var(--bg); }
  .cn-auth__brand--mobile { display: inline-flex; align-self: flex-start; margin-bottom: clamp(2.5rem, 10vh, 5rem); }
}
@media (max-width: 479.98px) {
  .cn-auth__card { padding: 1.6rem 1.3rem; border-radius: 20px; }
}
.cn-auth__card > * { position: relative; }
