/*
 * hero.css — split layout for the viewer portal, matching the welcome index.
 * Left column: the brand hero (identical to /). Right column: the existing
 * login card (portal.css), unchanged. Loaded AFTER portal.css so the body
 * override wins. All hero pieces are scoped under .hero to avoid clashing with
 * the portal's own classes.
 */

/* the card was centered by portal.css's body grid — the shell owns layout now.
   !important is deliberate: it overrides portal.css's body {display:grid;
   place-items:center}, which otherwise centers the shell (the "auto margins"
   look with black bands). */
html, body { width: 100%; max-width: 100%; }
body {
    display: block !important;
    place-items: initial !important;
    padding: 0 !important;
    background: #0a0b0f;
}

.shell {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

@keyframes ab-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(20px, -24px) scale(1.06); }
}

/* ---------- left hero (same as the index) ---------- */
.hero {
    position: relative;
    overflow: hidden;
    padding: 64px 48px 64px clamp(48px, 8vw, 180px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(160deg, #1a1c4d 0%, #111327 42%, #0b0c14 100%);
    font-family: 'Manrope', system-ui, -apple-system, sans-serif;
}
.hero .blob {
    position: absolute; top: -100px; right: -120px;
    width: 460px; height: 460px;
    background: radial-gradient(closest-side, rgba(129, 140, 248, 0.45), transparent);
    filter: blur(10px);
    animation: ab-float 16s ease-in-out infinite;
    pointer-events: none;
}
.hero .grid {
    position: absolute; inset: 0;
    background-image: linear-gradient(#ffffff0a 1px, transparent 1px), linear-gradient(90deg, #ffffff0a 1px, transparent 1px);
    background-size: 38px 38px;
    -webkit-mask-image: radial-gradient(90% 80% at 30% 40%, #000, transparent 80%);
    mask-image: radial-gradient(90% 80% at 30% 40%, #000, transparent 80%);
    pointer-events: none;
}
.hero .brand { position: relative; display: flex; align-items: center; gap: 11px; }
.hero .brand .mark {
    width: 34px; height: 34px; border-radius: 10px;
    background: linear-gradient(150deg, #a5b4fc, #6366f1);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 30px -8px rgba(99, 102, 241, 0.8);
}
.hero .brand .name { font-family: 'Space Grotesk', sans-serif; font-weight: 600; color: #eef0ff; font-size: 15px; }

.hero .hero-copy { position: relative; }
.hero .eyebrow { font-family: 'Space Grotesk', sans-serif; font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; color: #8b8fd6; }
.hero .hero-copy h1 { font-family: 'Space Grotesk', sans-serif; font-weight: 600; color: #f7f8ff; font-size: 46px; line-height: 1.06; letter-spacing: -0.025em; margin: 18px 0 0; }
.hero .hero-copy p { color: #b7bad6; font-size: 16px; line-height: 1.6; margin: 20px 0 0; max-width: 360px; }
.hero .hero-meta { position: relative; display: flex; gap: 26px; color: #9599c4; font-size: 12.5px; }

/* ---------- right column: hosts the existing portal card ---------- */
.portal-side {
    background: #0c0d13;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 64px clamp(24px, 6vw, 120px);
}

@media (max-width: 860px) {
    .shell { grid-template-columns: 1fr; }
    .hero {
        min-height: 220px;
        padding: 32px 32px calc(32px + env(safe-area-inset-top));
    }
    .hero .hero-copy h1 { font-size: 32px; }
    .hero .hero-copy p { max-width: none; }
    .portal-side {
        padding: 36px calc(20px + env(safe-area-inset-right))
                 calc(36px + env(safe-area-inset-bottom)) calc(20px + env(safe-area-inset-left));
    }
}
