/* ==========================================================================
   AlphaHub — identidade visual (paleta e tipografia das artes da marca)
   Carregado DEPOIS de auth.css: só sobrescreve variáveis e a tela de login.
   Cores das artes: azul-marinho #020813 / #041b2b, ciano #00e5dc, gelo #4af2ff.
   ========================================================================== */

:root {
    --ah-navy-0: #020813;
    --ah-navy-1: #041b2b;
    --ah-cyan: #00e5dc;
    --ah-cyan-2: #4af2ff;
    --ah-ink: #06202e;

    --bg: #f2f8f9;
    --surface: #ffffff;
    --surface-2: #f6fafb;
    --surface-3: #eaf3f5;
    --input-bg: #ffffff;
    --border: rgba(6, 32, 46, 0.09);
    --border-strong: rgba(6, 32, 46, 0.16);
    --text: #06202e;
    --muted: #55707c;
    --subtle: #7d98a3;

    --brand: #00c9c0;
    --brand-hover: #00b3ab;
    --brand-ink: #00747b;
    --brand-soft: #e5fbfa;
    --brand-soft-border: rgba(0, 201, 192, 0.35);
    --ring: rgba(0, 201, 192, 0.22);
}

.dark {
    --bg: #030a12;
    --surface: #050f1a;
    --surface-2: #081726;
    --surface-3: #0c2030;
    --input-bg: #081726;
    --border: rgba(0, 229, 220, 0.12);
    --border-strong: rgba(0, 229, 220, 0.24);
    --text: #e8fbff;
    --muted: #8fb0ba;
    --subtle: #6b8d98;

    --brand: #00e5dc;
    --brand-hover: #4af2ff;
    --brand-ink: #4af2ff;
    --brand-soft: rgba(0, 229, 220, 0.10);
    --brand-soft-border: rgba(0, 229, 220, 0.30);
    --ring: rgba(0, 229, 220, 0.22);

    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.5), 0 16px 40px -16px rgba(0, 0, 0, 0.7);
}

/* Tipografia das artes (Montserrat) nas telas de entrada */
.gw-login,
.gw-login input,
.gw-login button,
.gw-login select,
.gw-login textarea {
    font-family: 'Montserrat', 'Geist', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* Verdes fixos do design system anterior -> ciano */
.gw-input:hover { border-color: rgba(0, 201, 192, 0.5); }
.gw-field.is-valid .gw-input { border-color: rgba(0, 201, 192, 0.6); }
.gw-bar > i { background: linear-gradient(90deg, #00e5dc, var(--brand)); }
@keyframes gw-pulse { 0%, 100% { box-shadow: 0 0 0 4px var(--ring); } 50% { box-shadow: 0 0 0 8px rgba(0, 229, 220, 0.05); } }

.gw-btn-primary {
    color: #00292c;
    font-weight: 700;
    background: linear-gradient(90deg, #00e5dc, #4af2ff);
    box-shadow: 0 1px 2px rgba(0, 201, 192, .35), 0 10px 28px -10px rgba(0, 229, 220, .6), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.gw-btn-primary:hover:not([disabled]) { background: linear-gradient(90deg, #19f0e7, #7af6ff); }
.gw-btn-primary .gw-spinner { border-color: rgba(0, 41, 44, .28); border-top-color: #00292c; }

.gw-auth-side::before {
    background: radial-gradient(circle, rgba(0, 229, 220, .10) 0%, rgba(0, 229, 220, 0) 70%);
}

/* ==========================================================================
   LOGIN — painel da marca com o lobo 3D
   ========================================================================== */
body.gw-login-page .gw-auth-side { border-left: 1px solid var(--border); }
body.gw-login-page .gw-auth-card h2 { font-weight: 700; letter-spacing: -0.02em; }

body.gw-login-page .gw-hero {
    padding: 40px 48px 32px;
    background: radial-gradient(ellipse 90% 70% at 58% 46%, #062a3d 0%, #031624 45%, #020813 86%);
}
body.gw-login-page .gw-hero::before {
    z-index: -2;
    opacity: .55;
    background-image:
        linear-gradient(rgba(0, 229, 220, .07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 229, 220, .07) 1px, transparent 1px);
    background-size: 52px 52px;
    -webkit-mask-image: radial-gradient(ellipse 75% 65% at 55% 45%, #000 15%, transparent 78%);
    mask-image: radial-gradient(ellipse 75% 65% at 55% 45%, #000 15%, transparent 78%);
    animation: ah-grid 40s linear infinite;
}
@keyframes ah-grid { to { background-position: 52px 52px, 52px 52px; } }
body.gw-login-page .gw-hero::after {
    z-index: -2;
    right: auto; bottom: -30%; left: 50%;
    width: 900px; height: 900px; margin-left: -450px;
    background: radial-gradient(circle, rgba(0, 229, 220, .14) 0%, rgba(0, 229, 220, 0) 62%);
}

.ah-hero-logo { position: relative; z-index: 2; display: inline-flex; width: fit-content; }
.ah-hero-logo img {
    height: 58px !important; width: auto !important; max-width: none !important;
    filter: drop-shadow(0 0 18px rgba(0, 229, 220, .28));
}

/* Lobo fixo (imagem leve, sem animação): as bordas se dissolvem no fundo do painel */
.ah-wolf { position: absolute; left: 0; right: 0; top: 60px; height: calc(100% - 470px); min-height: 330px; z-index: -1; pointer-events: none; display: flex; align-items: center; justify-content: center; }
.ah-wolf img {
    height: 118%; width: auto; max-width: none; display: block; margin-left: 4%;
    mix-blend-mode: screen;
    -webkit-mask-image: radial-gradient(ellipse 50% 52% at 50% 50%, #000 42%, transparent 100%);
    mask-image: radial-gradient(ellipse 50% 52% at 50% 50%, #000 42%, transparent 100%);
}

.ah-hero-body { position: relative; z-index: 2; max-width: 660px; }
.ah-pill {
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 11px; font-size: 12.5px; font-weight: 500;
    color: #bff7f3; background: rgba(0, 229, 220, .08); border: 1px solid rgba(0, 229, 220, .28); border-radius: 999px;
}
.ah-pill-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ah-cyan); box-shadow: 0 0 0 0 rgba(0, 229, 220, .6); animation: ah-ping 2s ease-out infinite; }
@keyframes ah-ping { 0% { box-shadow: 0 0 0 0 rgba(0, 229, 220, .55); } 80%, 100% { box-shadow: 0 0 0 9px rgba(0, 229, 220, 0); } }
.gw-hero .ah-title {
    margin: 16px 0 0; font-weight: 700; letter-spacing: -.035em; line-height: 1.06; color: #fff;
    font-size: clamp(1.6rem, 2.9vw, 2.5rem); min-height: 2.2em;
}
.gw-hero .ah-title em {
    display: block; font-style: normal; background: linear-gradient(90deg, #5ff3ea, #00e5dc 55%, #7ad7ff);
    -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
.ah-caret {
    display: inline-block; width: 3px; height: .9em; margin-left: .08em; vertical-align: -.08em;
    background: var(--ah-cyan); -webkit-text-fill-color: initial; animation: ah-blink 1s steps(1) infinite;
}
@keyframes ah-blink { 50% { opacity: 0; } }
.ah-lead { margin: 14px 0 0; font-size: 15px; line-height: 1.6; color: rgba(216, 244, 248, .66); max-width: 470px; }
.ah-feats { margin: 22px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.ah-feats li { display: flex; gap: 13px; align-items: center; }
.ah-feats li > .gw-ic, .ah-feats li > svg {
    width: 40px !important; height: 40px !important; padding: 10px; flex-shrink: 0; border-radius: 12px; box-sizing: border-box;
    color: #5ff3ea; background: rgba(0, 229, 220, .08); border: 1px solid rgba(0, 229, 220, .22);
}
.ah-feats strong { display: block; font-size: 14px; font-weight: 600; color: #fff; }
.ah-feats span { display: block; font-size: 12.5px; line-height: 1.45; color: rgba(216, 244, 248, .56); }
body.gw-login-page .gw-hero-copy { display: none; }
@media (max-height: 800px) and (min-width: 1024px) { .ah-feats { display: none; } .ah-title { min-height: 0; } }

/* Celular / tablet: o lobo vira o topo da página */
@media (max-width: 1023px) {
    body.gw-login-page .gw-login { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
    body.gw-login-page .gw-hero { display: flex; min-height: 0; padding: 22px 22px 18px; gap: 12px; }
    body.gw-login-page .ah-hero-logo img { height: 44px !important; }
    .ah-wolf { position: relative; top: 0; height: 210px; min-height: 0; z-index: 0; flex-shrink: 0; }
    .ah-wolf img { height: 120%; margin-left: 0; }
    body.gw-login-page .gw-mobile-brand { display: none !important; }
    body.gw-login-page .gw-auth-side { min-height: 0; border-left: 0; }
    .ah-title { font-size: 1.55rem; min-height: 0; }
    .ah-lead { font-size: 13.5px; }
    .ah-feats { display: none; }
    body.gw-login-page .gw-hero-copy { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    body.gw-login-page .gw-hero::before { animation: none; }
    .ah-caret, .ah-pill-dot { animation: none; }
}

/* ===== KYC: moldura com etapas à esquerda e cartão à direita, lobo ao fundo ===== */
body.gw-kyc-page { position: relative; background: #050d18; }
body.gw-kyc-page::after {
    content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background: radial-gradient(900px 500px at 15% 0%, rgba(0, 229, 220, .08), transparent 60%);
}
body.gw-kyc-page .gw-topbar, body.gw-kyc-page .gw-shell { position: relative; z-index: 1; }
.ah-kyc-logo { display: none; }
.ah-kyc-exit { display: none; }
@media (min-width: 1024px) {
    body.gw-kyc-page .gw-topbar { background: transparent; border-bottom: 0; }
    body.gw-kyc-page .gw-topbar > a { visibility: hidden; }
    body.gw-kyc-page .gw-shell { max-width: 1180px; padding: 8px 24px 48px; }
    body.gw-kyc-page .gw-page-head { display: none; }
    body.gw-kyc-page .gw-kyc-grid {
        grid-template-columns: 300px minmax(0, 1fr); gap: 14px; padding: 14px; min-height: 660px;
        border: 1px solid rgba(0, 140, 150, .2); border-radius: 28px;
        background: rgba(255, 255, 255, .72); backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px);
        box-shadow: 0 40px 80px -44px rgba(8, 32, 50, .35);
    }
    html.dark body.gw-kyc-page .gw-kyc-grid {
        border-color: rgba(0, 229, 220, .16); background: rgba(8, 18, 31, .5);
        box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .8), 0 0 80px -40px rgba(0, 229, 220, .35);
    }
    body.gw-kyc-page .gw-steps-card { position: relative; top: 0; background: transparent; border: 0; box-shadow: none; padding: 14px 12px 8px; }
    .ah-kyc-logo { display: inline-flex; margin-bottom: 26px; }
    .ah-kyc-logo img { height: 34px !important; width: auto !important; }
    html.dark .ah-kyc-logo img { filter: drop-shadow(0 0 14px rgba(0, 229, 220, .25)); }
    .ah-kyc-exit { display: inline-block; margin-top: auto; padding: 14px 4px 4px; font-size: 13px; font-weight: 600; color: var(--muted, #7f9bb0); text-decoration: none; }
    .ah-kyc-exit:hover { color: #5ff3ea; }
    body.gw-kyc-page .gw-steps-card { overflow: hidden; isolation: isolate; }
    body.gw-kyc-page .gw-steps-card::after { /* lobo no fundo da coluna de etapas */
        content: ""; position: absolute; z-index: -1; pointer-events: none; left: -2px; right: 6px; bottom: 44px; height: 212px;
        border-radius: 18px; background: #06101c url("/public/img/brand/wolf-hero.jpg?v=1") 46% 50% / auto 112% no-repeat;
    }
    html.dark body.gw-kyc-page .gw-steps-card::after {
        left: -40px; right: -14px; height: 300px; border-radius: 0; background-color: transparent; mix-blend-mode: screen; opacity: .85;
        -webkit-mask-image: radial-gradient(ellipse 52% 50% at 55% 50%, #000 38%, transparent 100%);
        mask-image: radial-gradient(ellipse 52% 50% at 55% 50%, #000 38%, transparent 100%);
    }
    body.gw-kyc-page .gw-trust { display: none; }
    body.gw-kyc-page .gw-trust-sub { display: none; }
    body.gw-kyc-page form.gw-card { border-radius: 20px; background: #ffffff; border: 1px solid rgba(0, 140, 150, .18); box-shadow: none; }
    html.dark body.gw-kyc-page form.gw-card { background: #0a1626; border-color: rgba(0, 229, 220, .14); }
    body.gw-kyc-page .gw-card-head { border-bottom: 0; padding-bottom: 0; }
    body.gw-kyc-page .gw-card-body { max-width: 640px; margin: 0 auto; width: 100%; }
    body.gw-kyc-page .gw-card-foot { border-top: 1px solid rgba(0, 140, 150, .16); background: transparent; }
    html.dark body.gw-kyc-page .gw-card-foot { border-top-color: rgba(0, 229, 220, .12); }
}
html:not(.dark) body.gw-kyc-page { background: #f1f7fa; }
