/*
 * css/hero-login.css — swap-style hero for the not-logged-in login page (admin.php public view).
 * Loaded ONLY when !uxc_verify_admin(), after css/public.css, so it reuses the public gold tokens
 * (--g, --g2, --ink, --mut, --line, --shadow). Self-contained: the login form (.uxc-box from
 * admin.css) is restyled to a glass card inside the hero; admin.css internals are otherwise intact.
 * The 3D gold-globe backdrop is drawn by js/hero-globe.js (copied from swap.u.cash/new) into
 * #bg-canvas. All selectors are scoped to .uxc-hero-login so nothing leaks into the admin app.
 */

.uxc-hero-login {
    --line-gold: rgba(198, 154, 63, .3);

    position: relative;
    overflow: hidden;
    min-height: calc(100vh - 60px);
    min-height: calc(100svh - 60px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
}

/* 3D globe canvas — fixed to the hero bounds, behind content */
.uxc-hero-login #bg-canvas {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* depth overlay: fade the globe into the bg so text + card stay readable (mirrors swap .hero::after) */
.uxc-hero-login::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(70% 60% at 50% 38%, transparent, var(--bg) 92%),
        linear-gradient(to bottom, transparent, var(--bg) 97%);
}

.uxc-hero-login-inner {
    position: relative;
    z-index: 1;
    max-width: 860px;
    margin: 0 auto;
}

/* eyebrow pill + pulsing dot */
.uxc-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--g2);
    padding: 7px 14px;
    border: 1px solid var(--line-gold);
    background: rgba(255, 255, 255, .035);
    margin-bottom: 16px;
}
.uxc-hero-dot {
    width: 6px;
    height: 6px;
    background: var(--g);
    box-shadow: 0 0 10px var(--g);
    animation: uxc-hero-pulse 2s infinite;
}
@keyframes uxc-hero-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .35; }
}

/* headline */
.uxc-hero-title {
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1.04;
    letter-spacing: -.02em;
    font-weight: 700;
    margin: 0 0 6px;
    color: var(--ink);
}
.uxc-grad-gold {
    background: linear-gradient(100deg, var(--g), var(--g2) 45%, #fff6e0 70%, var(--g2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* lead */
.uxc-hero-lead {
    max-width: 620px;
    margin: 16px auto 0;
    color: var(--mut);
    font-size: 16px;
}

/* trust badges */
.uxc-hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 26px;
    justify-content: center;
    margin-top: 22px;
}
.uxc-hero-trust span {
    font-size: 12px;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--mut);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.uxc-hero-trust span::before {
    content: "";
    width: 5px;
    height: 5px;
    background: var(--g);
    box-shadow: 0 0 8px var(--g);
}

/* glass-card restyle of the login box, scoped (specificity 0,2,0 beats admin.css .uxc-box) */
.uxc-hero-login .uxc-box {
    max-width: 460px;
    margin: 26px auto 0;
    padding: 26px;
    border: 1px solid var(--line-gold);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow);
    text-align: left;
}
/* top gold hairline, like swap's .swap-card::before */
.uxc-hero-login .uxc-box::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--g), transparent);
    opacity: .55;
}
/* keep the card's internal title subtle so the hero headline leads */
.uxc-hero-login .uxc-top { text-align: left; }

/* ---------- responsive ---------- */
@media (max-width: 720px) {
    .uxc-hero-login { padding: 56px 18px; }
    .uxc-hero-lead { font-size: 16px; }
    .uxc-hero-trust { gap: 8px 18px; margin-top: 32px; }
}
@media (max-width: 560px) {
    .uxc-hero-login .uxc-box { padding: 26px 20px; }
}

/* reduced motion: the globe hides itself (hero-globe.js); drop the dot pulse too */
@media (prefers-reduced-motion: reduce) {
    .uxc-hero-dot { animation: none; }
}
