/* ============================================================
   Sign-in and sign-up pages (/login, /register), reel look, dark only.
   Same palette and type as the landing page: ink background, blue for
   actions, orange only for warnings. The form stays quiet; the globe scene
   (static/js/login-scene.js) is the one loud element.
   Tokens: static/css/reel-theme.css.
   ============================================================ */

/* Layout: form column aligned to the site container, scene bleeds to the right edge */
.ls { display: grid; min-height: calc(100vh - 5rem); }
@media (min-width: 1024px) {
    .ls { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}
.ls-form-col {
    display: flex; align-items: center;
    padding: 1.75rem 1rem 4rem;
}
@media (min-width: 640px) { .ls-form-col { padding: 3rem 1.5rem 5rem; justify-content: center; } }
@media (min-width: 1024px) {
    .ls-form-col {
        justify-content: flex-start;
        padding: 4rem 3.5rem 4rem max(2rem, calc((100vw - 1280px) / 2 + 2rem));
    }
}
.ls-form { width: 100%; max-width: 25rem; }

.ls-title {
    font-family: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif; font-weight: 700;
    color: var(--lp-fg); letter-spacing: -0.025em; line-height: 1.05;
    font-size: 2.25rem; margin-bottom: 2rem; text-wrap: balance;
}
@media (min-width: 1024px) { .ls-title { font-size: 2.75rem; } }
.ls-lede { color: var(--lp-mute); font-size: 1.0625rem; line-height: 1.55; margin-bottom: 2.25rem; }

.ls-label { display: block; font-size: .875rem; font-weight: 500; color: var(--lp-soft); margin-bottom: .5rem; }
.ls-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.ls-input {
    width: 100%; background: var(--lp-ink-2); color: var(--lp-fg);
    border: 1px solid var(--lp-line-2); border-radius: 10px;
    padding: .85rem 1rem; font-size: 1rem;
    transition: border-color .2s, box-shadow .2s;
}
.ls-input::placeholder { color: var(--lp-dim); }
.ls-input:focus { outline: none; border-color: var(--lp-blue); box-shadow: 0 0 0 3px var(--lp-focus-ring); }
.ls-link { color: var(--lp-link); font-weight: 500; transition: color .2s; }
.ls-link:hover { color: var(--lp-link-2); }
.ls-link:focus-visible, .ls-oauth:focus-visible { outline: 2px solid var(--lp-blue-2); outline-offset: 3px; border-radius: 4px; }

.ls-check { display: inline-flex; align-items: center; gap: .6rem; font-size: .875rem; color: var(--lp-mute); cursor: pointer; }
.ls-check input { width: 1rem; height: 1rem; accent-color: var(--lp-blue); }

.ls-btn {
    display: flex; width: 100%; align-items: center; justify-content: center; gap: .6rem;
    border-radius: 10px; font-weight: 600; padding: .9rem 1.5rem; font-size: 1rem;
    background: var(--lp-blue); color: var(--lp-on-blue);
    transition: background-color .2s, transform .15s;
}
.ls-btn:hover { background: var(--lp-blue-2); }
.ls-btn:active { transform: translateY(1px) scale(.99); }
.ls-btn:focus-visible { outline: 2px solid var(--lp-blue-2); outline-offset: 3px; }
.ls-btn:disabled { opacity: .6; cursor: progress; transform: none; }

.ls-alert { border-radius: 10px; padding: .9rem 1rem; margin-bottom: 1.5rem; background: var(--lp-warn-bg); border: 1px solid var(--lp-warn-line); }
.ls-alert__title { color: var(--lp-fg); font-weight: 600; font-size: .9375rem; }
.ls-alert__text { color: var(--lp-warn-text); font-size: .875rem; margin-top: .2rem; }
.ls-captcha { border-radius: 10px; padding: 1rem; background: var(--lp-ink-2); border: 1px solid var(--lp-line-2); }

.ls-or { display: flex; align-items: center; gap: 1rem; margin: 1.75rem 0 1.25rem; font-size: .8125rem; color: var(--lp-dim); }
.ls-or::before, .ls-or::after { content: ""; flex: 1; height: 1px; background: var(--lp-line); }
.ls-oauth {
    display: flex; align-items: center; justify-content: center; gap: .65rem;
    padding: .8rem 1rem; border-radius: 10px; font-weight: 500; font-size: .9375rem;
    color: var(--lp-fg); background: transparent; border: 1px solid var(--lp-line-2);
    font-family: inherit; cursor: pointer; width: 100%;
    transition: border-color .2s, background-color .2s;
}
.ls-oauth:hover { border-color: var(--lp-blue); background: rgba(56, 169, 228, .06); }

.ls-signup { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--lp-line); font-size: .9375rem; color: var(--lp-mute); }
.ls-signup p + p { margin-top: .4rem; font-size: .8125rem; color: var(--lp-dim); }

/* Scene. Phones: a short band above the form. Desktop: the right-hand panel.
   The grid fades out toward the form and the divider fades at both ends,
   so the scene opens onto the form instead of sitting in a box. */
.ls-scene {
    position: relative; overflow: hidden; order: -1; height: 14rem;
    background:
        radial-gradient(ellipse 60% 55% at 50% 48%, rgba(27, 95, 140, .30), transparent 70%),
        radial-gradient(circle at 88% 92%, rgba(255, 106, 26, .07), transparent 40%);
}
.ls-scene::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background:
        linear-gradient(rgba(22, 38, 58, .35) 1px, transparent 1px) 0 0 / 64px 64px,
        linear-gradient(90deg, rgba(22, 38, 58, .35) 1px, transparent 1px) 0 0 / 64px 64px;
    -webkit-mask-image: linear-gradient(to top, transparent, #000 35%);
            mask-image: linear-gradient(to top, transparent, #000 35%);
}
.ls-scene::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; pointer-events: none;
    background: linear-gradient(90deg, transparent, var(--lp-line-2) 25%, var(--lp-line-2) 75%, transparent);
}
@media (min-width: 640px) { .ls-scene { height: 18rem; } }
@media (min-width: 1024px) {
    .ls-scene { order: 0; height: auto; }
    .ls-scene::before {
        -webkit-mask-image: linear-gradient(to right, transparent, #000 20%);
                mask-image: linear-gradient(to right, transparent, #000 20%);
    }
    .ls-scene::after {
        top: 0; right: auto; width: 1px; height: auto;
        background: linear-gradient(transparent, var(--lp-line-2) 30%, var(--lp-line-2) 70%, transparent);
    }
}
.ls-scene canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .8s ease; }
.ls-scene canvas.is-ready { opacity: 1; }
.ls-scene__caption {
    position: absolute; left: 2.5rem; right: 2.5rem; bottom: 2.25rem;
    display: none; align-items: flex-end; justify-content: space-between; gap: 2rem; pointer-events: none;
}
@media (min-width: 1024px) { .ls-scene__caption { display: flex; } }
.ls-scene__line {
    max-width: 22rem; font-family: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif; font-weight: 600;
    font-size: 1.25rem; line-height: 1.3; letter-spacing: -0.01em; color: var(--lp-fg); text-wrap: balance;
}
.ls-legend { display: grid; gap: .45rem; font-size: .8125rem; color: var(--lp-mute); }
.ls-legend li { display: flex; align-items: center; gap: .6rem; }
.ls-legend i { width: 1.5rem; height: 0; border-top: 2px solid var(--c); }
.ls-legend i.is-dashed { border-top-style: dashed; }
.ls-legend i.is-dotted { border-top-style: dotted; border-top-width: 3px; }

/* One load sequence for the form, the scene draws itself in */
@media (prefers-reduced-motion: no-preference) {
    .ls-form > * { animation: ls-rise .7s cubic-bezier(.16, 1, .3, 1) both; }
    .ls-form > :nth-child(2) { animation-delay: .06s; }
    .ls-form > :nth-child(3) { animation-delay: .12s; }
    .ls-form > :nth-child(n+4) { animation-delay: .18s; }
}
@keyframes ls-rise { from { opacity: 0; transform: translateY(10px); } }
