/* Auth split layout (login + register). Loaded after auth.css.
   Desktop (1024px+): flat form on the left, game-wall brand panel (auth/_brand-panel-games) on the right.
   Below 1024px: the centred card with the skyline from auth.css. The site-wide storm overlay is off on these pages. */

body:has(.au-page) .aj-storm { display: none !important; }

@media (min-width: 1024px) {
    /* The brand panel carries the art, so the bottom skyline and perk chips are not needed. */
    .au-split .au-bg::after,
    .au-split .au-perks { display: none; }

    .au-split .au-body {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
        align-items: stretch;
        max-width: 1600px;
        padding-bottom: 0;
    }

    .au-split .au-main {
        max-width: none;
        margin: 0;
        padding: 24px clamp(32px, 5vw, 88px) 0;
    }

    .au-split .au-card,
    html[data-theme=dark] .au-split .au-card {
        width: 100%;
        max-width: 420px;
        margin: auto;
        padding: 0;
        background: transparent;
        border: 0;
        box-shadow: none;
    }

    .au-split .au-head { text-align: left; }
    .au-split .au-legal { margin-top: 0; }
    .au-split .au-panel { display: block; }

    /* Game-wall panel */
    .au-panel-games .au-scene {
        background:
            radial-gradient(60% 45% at 85% 20%, rgba(59,130,246,.30), transparent 70%),
            radial-gradient(55% 45% at 10% 95%, rgba(14,165,233,.22), transparent 70%),
            linear-gradient(165deg, var(--au-sky-top), var(--au-sky-bottom));
    }
    .au-pa-vis { position: relative; flex: 1 1 auto; min-height: 340px; overflow: hidden; }
    .au-pa-wall {
        position: absolute; inset: 0 -18% -30% 4%;
        display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; align-content: start;
        transform: rotate(-12deg); transform-origin: 30% 20%;
        -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 18%, #000 70%, transparent 100%);
        mask-image: linear-gradient(180deg, transparent 0, #000 18%, #000 70%, transparent 100%);
    }
    .au-pa-wall img {
        width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 22px;
        border: 1px solid rgba(255,255,255,.14); box-shadow: 0 14px 30px -12px rgba(0,0,0,.55);
    }
    .au-pa-wall img:nth-child(4n+2), .au-pa-wall img:nth-child(4n+4) { transform: translateY(44px); }
    .au-pa-chip {
        position: absolute; left: 48px; bottom: 36px; display: inline-flex; align-items: center; gap: 8px;
        padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: .9375rem; color: #fff;
        background: rgba(15,23,42,.62); border: 1px solid rgba(255,255,255,.18);
        -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 10px 30px -10px rgba(0,0,0,.5);
    }
    .au-pa-chip i { color: #FACC15; }
}

/* ---------- mobile / touch polish ---------- */

/* Bigger tap areas for the inline links (aim: 44px tall) without moving the text. */
.au-switch .au-link { display: inline-block; padding: 13px 6px; margin: -13px -6px; }
.au-legal a { padding-block: 10px; margin-block: -10px; }

/* Very narrow phones (Galaxy Fold folded, 280-359px): keep the tabs and headings on one tidy line each. */
@media (max-width: 359.98px) {
    .au-card { padding-inline: 14px; }
    .au-tab { padding-inline: 6px; font-size: .875rem; line-height: 1.2; text-align: center; white-space: normal; }
    .au-title { font-size: 1.5rem; }
    .au-btn-google { font-size: .9375rem; gap: 8px; padding-inline: 10px; }
}

/* The panel art fills the whole tile even when the form makes the page taller than the screen. */
@media (min-width: 1024px) {
    .au-panel-games .au-tile { display: flex; flex-direction: column; }
    .au-panel-games .au-scene { flex: 1 1 auto; }
}
