/*
 * Account pages (/account/*): layout plus the two decorative panels.
 *
 * Plain CSS on purpose. Most values here are one-offs (3D transforms, keyframes, the sticky-note
 * wall), and new Tailwind utilities are unreliable under `next dev --turbopack`.
 *
 * Both panels are decoration: aria-hidden, no pointer events, and `display: none` below `lg`, so
 * their lazy images and the note font never download on phones. Motion stops under
 * prefers-reduced-motion.
 */

/* ---------- Layout ---------- */

.auth-layout_page__sU2hx {
    position: relative;
    display: grid;
    min-height: 100svh;
}

.auth-layout_formSide__Y20NK {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 88px 16px 40px;
}

.auth-layout_brand__vnmXg {
    position: absolute;
    left: 16px;
    top: 20px;
}

.auth-layout_formColumn__5Dj6N {
    width: 100%;
    max-width: 350px;
}

.auth-layout_formColumnWide__ebMxW {
    width: 100%;
    max-width: 520px;
}

.auth-layout_visualSide__Fyx54 {
    display: none;
}

@media (min-width: 768px) {
    .auth-layout_formColumnMedium__5Bsda {
        max-width: 400px;
    }

    .auth-layout_brand__vnmXg {
        left: 32px;
        top: 32px;
    }
}

@media (min-width: 1024px) {
    .auth-layout_pageSplit__FKUKw {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .auth-layout_visualSide__Fyx54 {
        display: block;
        height: 100svh;
        position: sticky;
        top: 0;
        padding: 20px 20px 20px 0;
        box-sizing: border-box;
        pointer-events: none;
        -webkit-user-select: none;
           -moz-user-select: none;
                user-select: none;
    }
}

/* ---------- Panel rotator: product and problem, 10s each ---------- */
/* Opacity only, so it keeps running under prefers-reduced-motion; only movement is stopped there. */

.auth-layout_rotator__rrRBp {
    position: relative;
    height: 100%;
}

.auth-layout_rotatorLayer__pIXj3 {
    position: absolute;
    inset: 0;
}

.auth-layout_rotatorLead__VL1dY {
    animation: auth-layout_rotatorLead__VL1dY 20s ease-in-out infinite both;
}

.auth-layout_rotatorFollow__ZRiX_ {
    opacity: 0;
    animation: auth-layout_rotatorFollow__ZRiX_ 20s ease-in-out infinite both;
}

/* A 1.2s crossfade at each half: lead holds 0-44%, follow holds 50-94%. */
@keyframes auth-layout_rotatorLead__VL1dY {
    0%, 44% { opacity: 1; }
    50%, 94% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes auth-layout_rotatorFollow__ZRiX_ {
    0%, 44% { opacity: 0; }
    50%, 94% { opacity: 1; }
    100% { opacity: 0; }
}

/* ---------- Rotating headline (sign-up) ---------- */

.auth-layout_headline__zamvG {
    position: relative;
    width: 100%;
    margin: 0;
    height: 2.1em;
    font-size: 34px;
    line-height: 1.05;
    font-weight: 600;
    letter-spacing: -0.03em;
    text-align: center;
}

@media (min-width: 640px) {
    .auth-layout_headline__zamvG {
        font-size: 52px;
    }
}

.auth-layout_headlineLine__VP1o8 {
    position: absolute;
    inset: 0;
    margin: 0;
    font: inherit;
    letter-spacing: inherit;
    opacity: 0;
    animation: auth-layout_headlineFade__qQK_R 14s ease-in-out infinite both;
}

/*
 * Each line fades fully out before the next fades in. Sized for FOUR lines of 3.5s (14s cycle, one
 * line = 25%): fade in over 0.7s, hold, fade out by 3.5s. Retime if the line count changes.
 */
@keyframes auth-layout_headlineFade__qQK_R {
    0% { opacity: 0; }
    5%, 20% { opacity: 1; }
    25%, 100% { opacity: 0; }
}

.auth-layout_srOnly__vbH_A {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ---------- Sign-in showcase: the real app, tilted ---------- */

.auth-layout_showcase__kqMsQ {
    position: relative;
    height: 100%;
    border-radius: 28px;
    background: #0C0E12;
    overflow: hidden;
    perspective: 2200px;
}

.auth-layout_showcaseGlow__pDMaV {
    position: absolute;
    left: 25%;
    top: 30%;
    width: 560px;
    height: 480px;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(44, 123, 229, 0.32), rgba(44, 123, 229, 0));
    filter: blur(20px);
}

.auth-layout_showcaseCaption__4KN98 {
    position: absolute;
    left: 44px;
    top: 44px;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-layout_showcaseTitle__mFAPG {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.015em;
    color: #F2F4F7;
}

.auth-layout_showcaseSubtitle__ymX_c {
    font-size: 15px;
    color: #8B93A1;
}

/* The screenshot is 1000x717 in stage units; the lifted layers are placed on it in the same units. */
.auth-layout_stage__bz6Hs {
    position: absolute;
    left: 120px;
    top: 230px;
    width: 1000px;
    height: 717px;
    transform-style: preserve-3d;
    transform-origin: 20% 50%;
    animation: auth-layout_stageSway__v78K2 14s ease-in-out infinite alternate;
}

.auth-layout_screen__wZ0bA {
    position: absolute;
    inset: 0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 80px 140px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.10);
}

.auth-layout_screenImage__NCeNc {
    display: block;
    width: 1000px;
    height: 717px;
    filter: brightness(0.78);
}

.auth-layout_sheen__K3dPc {
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(255, 255, 255, 0) 42%, rgba(255, 255, 255, 0.07) 50%, rgba(255, 255, 255, 0) 58%);
    background-size: 250% 100%;
    animation: auth-layout_sheenSweep__a6998 7s ease-in-out infinite;
}

/* Slim frame in the app's own background (#1F2023) so no icon sits on the crop edge. */
.auth-layout_liftedSummary__UnLp1 {
    position: absolute;
    left: 27px;
    top: 220px;
    width: 390px;
    box-sizing: border-box;
    padding: 8px 8px 0;
    border-radius: 14px 14px 0 0;
    background: #1F2023;
    box-shadow: 0 40px 70px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.10);
    -webkit-mask-image: linear-gradient(180deg, #000 80%, rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(180deg, #000 80%, rgba(0, 0, 0, 0) 100%);
    animation: auth-layout_liftLow__hOkh5 7s ease-in-out infinite alternate;
}

.auth-layout_liftedSummaryImage__pVo7N {
    display: block;
    width: 374px;
    height: 480px;
}

.auth-layout_liftedNote__FmLWX {
    position: absolute;
    left: 798px;
    top: 41px;
    width: 199px;
    box-sizing: border-box;
    padding: 6px;
    border-radius: 13px;
    background: #1F2023;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.10);
    animation: auth-layout_liftHigh__Uauoq 7s ease-in-out -2s infinite alternate;
}

.auth-layout_liftedNoteImage___Enpb {
    display: block;
    width: 187px;
    height: 136px;
    border-radius: 8px;
}

@keyframes auth-layout_stageSway__v78K2 {
    0% { transform: rotateX(16deg) rotateY(-22deg) rotateZ(-6deg); }
    100% { transform: rotateX(11deg) rotateY(-15deg) rotateZ(-4deg); }
}

@keyframes auth-layout_liftLow__hOkh5 {
    0% { transform: translateZ(50px); }
    100% { transform: translateZ(110px); }
}

@keyframes auth-layout_liftHigh__Uauoq {
    0% { transform: translateZ(90px); }
    100% { transform: translateZ(170px); }
}

@keyframes auth-layout_sheenSweep__a6998 {
    0% { background-position: 160% 0; }
    100% { background-position: -60% 0; }
}

/* ---------- Sign-up wall: the pile of unwatched videos ---------- */

@font-face {
    font-family: "VH Notes";
    src: url("/fonts/Caveat/Caveat-Latin.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

.auth-layout_wall__6R5Ga {
    position: relative;
    height: 100%;
    border-radius: 28px;
    background: #E8EBF0;
    overflow: hidden;
}

.auth-layout_tabBar__Ibjk0 {
    position: absolute;
    left: 24px;
    right: 24px;
    top: 24px;
    height: 34px;
    border-radius: 10px;
    background: #ffffff;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.auth-layout_tab__O58ij {
    flex-shrink: 0;
    width: 52px;
    height: 22px;
    border-radius: 6px;
    background: #F1F3F6;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 6px;
    box-sizing: border-box;
}

.auth-layout_tabIcon__WDcBY {
    width: 10px;
    height: 8px;
    border-radius: 2px;
    background: #D64545;
}

.auth-layout_tabLabel__IIKoW {
    flex-grow: 1;
    height: 4px;
    border-radius: 2px;
    background: #CBD1DA;
}

/* Bounding box of the pile below (items are placed inside it in px), centred in the panel. */
.auth-layout_cluster__FC13l {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 700px;
    height: 840px;
    transform: translate(-50%, -48%);
}

.auth-layout_float__YKh8H {
    position: absolute;
    animation: auth-layout_gentleFloat__OYJKI 6s ease-in-out infinite alternate;
}

.auth-layout_card___Dq5F {
    position: relative;
    width: 190px;
    box-sizing: border-box;
    padding: 8px;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.10);
    filter: saturate(0.75);
}

.auth-layout_thumb__fgYkc {
    position: relative;
    height: 100px;
    border-radius: 6px;
}

.auth-layout_play__lqPbL {
    position: absolute;
    left: 50%;
    top: 50%;
    margin: -13px 0 0 -13px;
}

.auth-layout_duration__XNrmL {
    position: absolute;
    right: 6px;
    bottom: 6px;
    padding: 1px 5px;
    border-radius: 4px;
    background: rgba(15, 23, 42, 0.8);
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
}

.auth-layout_titleBar__heW2V {
    height: 6px;
    margin-top: 9px;
    border-radius: 3px;
    background: #D4D9E1;
    width: 88%;
}

.auth-layout_metaBar__kmYmC {
    height: 6px;
    margin-top: 6px;
    border-radius: 3px;
    background: #E3E7EE;
    width: 56%;
}

.auth-layout_note__KL7_w {
    position: relative;
    width: 184px;
    min-height: 136px;
    box-sizing: border-box;
    padding: 16px;
    border-radius: 2px;
    font-family: "VH Notes", cursive;
    font-size: 28px;
    font-weight: 500;
    line-height: 1.1;
    color: #243042;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08), 0 14px 26px -6px rgba(15, 23, 42, 0.22);
}

/*
 * Dark theme (next-themes puts `.dark` on <html>): the wall drops to a dark board so it does not
 * glare beside a dark form, the video cards recede, and the sticky notes keep their paper colours,
 * which is what makes them read as the subject.
 */
.dark .auth-layout_wall__6R5Ga {
    background: #16191E;
}

.dark .auth-layout_tabBar__Ibjk0 {
    background: #22262C;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.dark .auth-layout_tab__O58ij {
    background: #2B3037;
}

.dark .auth-layout_tabLabel__IIKoW {
    background: #3B414B;
}

.dark .auth-layout_card___Dq5F {
    background: #23272E;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.dark .auth-layout_thumb__fgYkc {
    filter: brightness(0.55);
}

.dark .auth-layout_titleBar__heW2V {
    background: #3B414B;
}

.dark .auth-layout_metaBar__kmYmC {
    background: #30353D;
}

.dark .auth-layout_note__KL7_w {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 30px -6px rgba(0, 0, 0, 0.6);
}

/*
 * The art is laid out in fixed pixels for a ~700x860 panel. Narrow desktops and short laptops get
 * it scaled down (the `scale` property composes with the animated `transform`), so it crops less.
 */
@media (max-width: 1439px) {
    .auth-layout_cluster__FC13l { scale: 0.86; }
    .auth-layout_stage__bz6Hs { scale: 0.9; }
}

@media (max-width: 1279px) {
    .auth-layout_cluster__FC13l { scale: 0.74; }
    .auth-layout_stage__bz6Hs { scale: 0.8; }
}

@media (max-height: 820px) {
    .auth-layout_cluster__FC13l { scale: 0.8; }
}

@keyframes auth-layout_gentleFloat__OYJKI {
    0% { transform: translateY(0); }
    100% { transform: translateY(-7px); }
}

@media (prefers-reduced-motion: reduce) {
    .auth-layout_stage__bz6Hs,
    .auth-layout_sheen__K3dPc,
    .auth-layout_liftedSummary__UnLp1,
    .auth-layout_liftedNote__FmLWX,
    .auth-layout_float__YKh8H {
        animation: none;
    }

    .auth-layout_stage__bz6Hs {
        transform: rotateX(14deg) rotateY(-19deg) rotateZ(-5deg);
    }

    .auth-layout_liftedSummary__UnLp1 {
        transform: translateZ(80px);
    }

    .auth-layout_liftedNote__FmLWX {
        transform: translateZ(130px);
    }

    /* The headline and panel rotations are opacity-only fades, not movement, so they keep running. */
}

