/* ---------------------------------------------------------------- */
/* IronGate OTC — nova home pública (index.php)                       */
/* Portado do mockup de referência (D:\irongate site\styles.css),     */
/* carregado DEPOIS de style.css nesta página — o reset global e o    */
/* lang_switcher.php continuam vindo de lá; aqui só sobrescreve       */
/* body/cores e adiciona as classes novas da home IronGate.           */
/* ---------------------------------------------------------------- */

:root {
    --navy-950: #010916;
    --navy-900: #021127;
    --navy-800: #071b3d;
    --ig-blue: #2e91ff;
    --ig-blue-bright: #4cb4ff;
    --ig-gold: #e7ab3d;
    --ig-gold-light: #f5cd72;
    --ig-text: #f5f7ff;
    --ig-muted: #b6c0d8;
}

body.ig-body {
    margin: 0;
    max-width: 100%;
    overflow-x: hidden;
    background: var(--navy-950);
    color: var(--ig-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* :where() mantém a especificidade em zero — sem isso, ".ig-body a"
   (duas partes) venceria no cascade sobre overrides de uma classe só
   (".ig-cta-primary", ".ig-header-login", ".ig-quote-link" etc.),
   fazendo os links coloridos caírem pro branco herdado do body. */
:where(.ig-body) a { color: inherit; text-decoration: none; }
:where(.ig-body) button { font: inherit; }

.ig-site-shell {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background:
        radial-gradient(circle at 72% 30%, rgba(14, 95, 226, .22), transparent 31rem),
        radial-gradient(circle at 13% 43%, rgba(0, 107, 255, .13), transparent 26rem),
        linear-gradient(150deg, #020817 0%, #021126 52%, #010713 100%);
}

.ig-site-shell::before,
.ig-site-shell::after {
    content: "";
    position: absolute;
    z-index: 0;
    border-radius: 999px;
    filter: blur(90px);
    pointer-events: none;
}

.ig-site-shell::before {
    width: 24rem;
    height: 24rem;
    right: 4%;
    top: 28rem;
    background: rgba(0, 91, 255, .13);
}

.ig-site-shell::after {
    width: 18rem;
    height: 18rem;
    left: -8rem;
    top: 44rem;
    background: rgba(0, 137, 255, .12);
}

.ig-grid-lines {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: .18;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(37, 107, 218, .17) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 107, 218, .12) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(to bottom, transparent, black 15%, transparent 75%);
}

.ig-energy-trails {
    position: absolute;
    inset: 80px 0 auto auto;
    z-index: 1;
    width: min(48vw, 620px);
    height: 610px;
    opacity: .42;
    pointer-events: none;
    background:
        radial-gradient(circle at 94% 11%, #1389ff 0 3px, transparent 4px),
        radial-gradient(circle at 73% 36%, #28a2ff 0 2px, transparent 4px),
        radial-gradient(circle at 89% 69%, #1389ff 0 3px, transparent 5px),
        linear-gradient(135deg, transparent 0 45%, rgba(8, 88, 232, .7) 45.2% 45.7%, transparent 46%),
        linear-gradient(135deg, transparent 0 57%, rgba(8, 88, 232, .48) 57.2% 57.6%, transparent 58%),
        linear-gradient(135deg, transparent 0 69%, rgba(8, 88, 232, .35) 69.2% 69.6%, transparent 70%);
    mask-image: linear-gradient(to left, #000 55%, transparent);
}

.ig-energy-trails::before,
.ig-energy-trails::after {
    content: "";
    position: absolute;
    right: -18px;
    width: 82%;
    height: 170px;
    border-top: 2px solid rgba(18, 102, 255, .68);
    border-left: 2px solid rgba(18, 102, 255, .55);
    transform: skewX(-42deg);
    box-shadow: 0 -1px 9px rgba(0, 114, 255, .28);
}

.ig-energy-trails::before { top: 160px; }

.ig-energy-trails::after {
    top: 350px;
    right: -110px;
    width: 95%;
    opacity: .65;
}

.ig-topbar,
.ig-hero,
.ig-access-panel,
.ig-footer {
    position: relative;
    z-index: 2;
}

.ig-topbar {
    /* precisa ficar acima da .ig-hero (mesmo z-index:2 da regra
       compartilhada acima, empate resolvido por ordem no DOM) — sem
       isso, quando o mascote sobrepõe visualmente o topbar (top
       negativo no desktop), ele fica na frente e "rouba" o clique dos
       botões Entrar/idioma, mesmo sem aparecer por cima visualmente. */
    position: relative;
    z-index: 6;
    width: min(1180px, calc(100% - 56px));
    height: 112px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ig-brand img {
    display: block;
    width: 220px;
    height: auto;
}

.ig-header-actions {
    display: flex;
    gap: 14px;
    align-items: center;
}

.ig-pill-lang {
    display: inline-flex;
    align-items: center;
}

/* cs9-lang-toggle (definido em style.css) tem cores pensadas pra fundo
   claro — aqui reescreve só a aparência, mantendo a mesma lógica/JS.
   Um único include do lang_switcher.php nesta página (no topbar) — dois
   includes duplicariam o id="cs9-lang-dropdown" e quebrariam o JS. */
.ig-pill-lang .cs9-lang-toggle {
    border: 1px solid rgba(131, 163, 217, .4);
    background: rgba(3, 13, 35, .65);
    color: #eef3ff;
    border-radius: 999px;
    padding: 10px 16px;
}

.ig-pill-lang .cs9-lang-toggle:hover {
    border-color: var(--ig-gold);
}

.ig-pill-lang .cs9-lang-caret {
    color: #b4c2dc;
}

/* Segunda instância do lang_switcher.php, só pro rodapé mobile (ver
   index.php: inclui com $cs9LangIdSuffix = '-footer' pra não duplicar
   o id="cs9-lang-dropdown" da instância do topbar). Escondida no
   desktop — só aparece no media query mobile mais abaixo. */
.ig-footer-lang { display: none; align-items: center; }

.ig-footer-lang .cs9-lang-toggle {
    border: 1px solid rgba(131, 163, 217, .4);
    background: rgba(3, 13, 35, .65);
    color: #eef3ff;
    border-radius: 999px;
    padding: 10px 16px;
}

.ig-footer-lang .cs9-lang-toggle:hover {
    border-color: var(--ig-gold);
}

.ig-footer-lang .cs9-lang-caret {
    color: #b4c2dc;
}

.ig-header-login {
    min-width: 104px;
    padding: 12px 20px;
    border: 1px solid rgba(232, 175, 69, .7);
    border-radius: 999px;
    color: var(--ig-gold-light);
    text-align: center;
    transition: .2s ease;
}

.ig-header-login:hover {
    background: rgba(232, 175, 69, .1);
}

.ig-hero {
    width: min(1180px, calc(100% - 56px));
    min-height: 610px;
    margin: 16px auto 0;
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    align-items: center;
}

.ig-watermark {
    position: absolute;
    left: -210px;
    top: 70px;
    width: 580px;
    opacity: .035;
    transform: rotate(-4deg);
    pointer-events: none;
}

.ig-watermark img { width: 100%; }

.ig-hero-copy {
    position: relative;
    z-index: 3;
    padding: 28px 0 74px;
}

.ig-status-pill {
    width: max-content;
    border: 1px solid rgba(83, 149, 255, .42);
    border-radius: 999px;
    background: rgba(12, 46, 97, .56);
    color: #5ca7ff;
    padding: 10px 16px;
    font-size: 14px;
    display: flex;
    gap: 9px;
    align-items: center;
    box-shadow: inset 0 0 22px rgba(32, 112, 255, .08);
}

.ig-status-shield { color: #cfe2ff; font-size: 18px; }

.ig-hero-copy h1 {
    margin: 32px 0 22px;
    font-size: clamp(54px, 5vw, 78px);
    line-height: 1.02;
    letter-spacing: -3px;
    color: var(--ig-text);
}

.ig-hero-copy h1 span {
    background: linear-gradient(135deg, var(--ig-gold-light), #c98a22);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.ig-hero-copy > p {
    width: min(540px, 100%);
    color: #c9d1e4;
    font-size: 21px;
    line-height: 1.65;
    margin: 0 0 30px;
}

.ig-quote-link {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    color: #419cff;
    font-weight: 600;
    transition: .2s ease;
}

.ig-quote-link:hover {
    color: #78bdff;
    transform: translateX(2px);
}

.ig-mascot-wrap {
    align-self: end;
    position: relative;
    min-height: 600px;
}

.ig-mascot-glow {
    position: absolute;
    inset: 14% 5% 8%;
    background: radial-gradient(circle, rgba(31, 134, 255, .38), transparent 65%);
    filter: blur(32px);
}

.ig-mascot {
    position: absolute;
    z-index: 1;
    width: min(690px, 58vw);
    max-width: none;
    right: -62px;
    bottom: -22px;
    top: -200px;
    filter: drop-shadow(0 30px 48px rgba(0, 38, 100, .55));
}

.ig-access-panel {
    width: min(1180px, calc(100% - 56px));
    margin: -24px auto 70px;
    padding: 32px 38px 28px;
    border: 1px solid rgba(111, 160, 231, .43);
    border-radius: 28px;
    background:
        radial-gradient(circle at 17% 10%, rgba(48, 106, 202, .19), transparent 28%),
        linear-gradient(145deg, rgba(10, 33, 73, .86), rgba(2, 17, 42, .87));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 30px 80px rgba(0, 0, 0, .32);
    backdrop-filter: blur(18px);
}

.ig-panel-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.ig-panel-heading h2 {
    font-size: 18px;
    font-weight: 500;
    margin: 0;
    color: var(--ig-text);
}

.ig-mini-shield { color: #359bff; font-size: 25px; }

.ig-benefit-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.ig-benefit-card {
    min-height: 190px;
    padding: 25px 16px 20px;
    border: 1px solid rgba(100, 142, 207, .28);
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(23, 49, 91, .54), rgba(4, 20, 47, .45));
    text-align: center;
}

.ig-benefit-icon {
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Só o ícone "Seguro" tem fundo colorido (verde) — os outros três ficam
   com a cor própria do ícone, sem encapsulamento atrás, igual era antes
   do rebrand da IronGate. */
.ig-benefit-seguro .ig-benefit-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #00a86b;
}

.ig-benefit-card h3 { margin: 0 0 7px; font-size: 17px; color: var(--ig-text); }

.ig-benefit-card p {
    color: var(--ig-muted);
    margin: 0 auto;
    font-size: 13px;
    line-height: 1.45;
    max-width: 170px;
}

.ig-cta-stack {
    margin-top: 26px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.ig-cta {
    min-height: 72px;
    padding: 0 30px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 19px;
    font-weight: 700;
    transition: transform .2s ease, filter .2s ease;
}

.ig-cta:hover { transform: translateY(-2px); filter: brightness(1.08); }

.ig-cta span:last-child { font-size: 28px; font-weight: 400; }

.ig-cta-primary {
    color: #07101f;
    background: linear-gradient(100deg, var(--ig-gold-light), #d69a2d);
    border: 1px solid #ffd878;
    box-shadow: 0 12px 32px rgba(221, 157, 41, .25);
}

.ig-cta-secondary {
    color: #f3b548;
    border: 1.5px solid #e7a42e;
    background: rgba(6, 23, 52, .45);
}

.ig-protection {
    margin: 22px 0 0;
    color: #b6c1d8;
    text-align: center;
}

.ig-protection span { color: var(--ig-gold); margin-right: 6px; }

.ig-mobile-link { display: none; }

.ig-footer {
    width: min(1180px, calc(100% - 56px));
    margin: 0 auto;
    padding: 0 0 36px;
    text-align: center;
}

.ig-footer p { margin: 0 0 9px; color: #368fff; font-size: 17px; }

.ig-footer > span { color: #8691a9; font-size: 10px; letter-spacing: 4px; }

.ig-footer-instagram {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 0 14px;
    border-radius: 50%;
    border: 1px solid rgba(214, 154, 45, .4);
    color: var(--ig-gold-light);
}

.ig-footer-instagram:hover { border-color: var(--ig-gold); color: var(--ig-gold); }

.ig-footer-legal { margin: 0 0 9px; font-size: 13px; }
.ig-footer-legal a { color: #8691a9; text-decoration: none; }
.ig-footer-legal a:hover { color: var(--ig-gold-light); text-decoration: underline; }

@media (max-width: 760px) {
    .ig-site-shell {
        background:
            radial-gradient(circle at 78% 20%, rgba(12, 96, 225, .22), transparent 22rem),
            linear-gradient(155deg, #010816 0%, #03142e 45%, #010713 100%);
    }

    .ig-grid-lines {
        background-size: 44px 44px;
        opacity: .2;
        mask-image: linear-gradient(to bottom, transparent 2%, black 18%, transparent 72%);
    }

    .ig-energy-trails {
        inset: 64px -18px auto auto;
        width: 76vw;
        height: 430px;
        opacity: .72;
        background:
            radial-gradient(circle at 94% 8%, #168cff 0 2px, transparent 4px),
            radial-gradient(circle at 63% 34%, #42b7ff 0 2px, transparent 4px),
            radial-gradient(circle at 89% 72%, #168cff 0 2px, transparent 4px),
            linear-gradient(135deg, transparent 0 39%, rgba(14, 91, 237, .62) 39.3% 39.8%, transparent 40.1%),
            linear-gradient(135deg, transparent 0 57%, rgba(14, 91, 237, .46) 57.3% 57.8%, transparent 58.1%);
        mask-image: linear-gradient(to left, #000 35%, transparent 94%);
    }

    .ig-energy-trails::before { top: 85px; height: 116px; }
    .ig-energy-trails::after { top: 235px; height: 92px; }

    .ig-topbar {
        width: calc(100% - 36px);
        height: 70px;
        justify-content: center;
    }

    .ig-brand img { width: 176px; }

    .ig-header-actions { display: none; }

    .ig-hero {
        width: 100%;
        min-height: 390px;
        margin: 0;
        display: block;
    }

    .ig-watermark {
        width: 390px;
        left: -118px;
        top: 118px;
        opacity: .13;
        filter: brightness(0) saturate(100%) invert(25%) sepia(72%) saturate(1838%) hue-rotate(188deg) brightness(80%);
        mix-blend-mode: screen;
    }

    .ig-hero-copy {
        position: absolute;
        z-index: 4;
        left: 20px;
        right: 20px;
        top: 32px;
        padding: 0;
    }

    .ig-status-pill { padding: 8px 12px; font-size: 12px; }

    .ig-hero-copy h1 {
        margin: 40px 0 10px;
        font-size: clamp(26px, 8vw, 32px);
        letter-spacing: -1.5px;
    }

    .ig-hero-copy > p {
        width: 66%;
        font-size: 15.5px;
        line-height: 1.55;
        margin: 0;
    }

    .ig-desktop-link { display: none; }

    .ig-mascot-wrap {
        position: absolute;
        inset: 0 0 auto;
        height: 390px;
        min-height: 390px;
        align-self: auto;
        overflow: visible;
    }

    .ig-mascot-glow { inset: -5% -10% 2% 30%; filter: blur(19px); }

    .ig-mascot {
        width: 320px;
        max-width: none;
        right: -95px;
        top: -50px;
        bottom: auto;
        opacity: 1;
        visibility: visible;
        object-fit: contain;
    }

    .ig-access-panel {
        position: relative;
        z-index: 3;
        width: calc(100% - 20px);
        margin: -80px auto 20px;
        padding: 18px 14px 18px;
        border-radius: 20px;
    }

    .ig-panel-heading { margin-bottom: 14px; }
    .ig-panel-heading h2 { font-size: 14px; }

    .ig-benefit-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }

    .ig-benefit-card {
        min-height: 0;
        padding: 12px 5px 10px;
        border-radius: 14px;
    }

    .ig-benefit-icon { margin-bottom: 8px; }

    .ig-benefit-seguro .ig-benefit-icon { width: 40px; height: 40px; }

    .ig-benefit-icon svg { width: 24px; height: 24px; }

    .ig-benefit-card h3 { font-size: 10.5px; margin: 0 0 3px; }
    .ig-benefit-card p { font-size: 8px; line-height: 1.25; max-width: none; }

    .ig-cta-stack { grid-template-columns: 1fr; gap: 10px; margin-top: 16px; }

    .ig-cta {
        min-height: 54px;
        padding: 0 20px;
        border-radius: 15px;
        font-size: 15px;
    }

    .ig-protection { margin-top: 14px; font-size: 12px; }

    .ig-mobile-link {
        display: flex;
        width: max-content;
        margin: 12px auto 0;
        font-size: 13px;
    }

    .ig-footer { width: calc(100% - 36px); padding-bottom: 20px; }

    .ig-footer-lang { display: inline-flex; margin-bottom: 14px; }

    .ig-footer p { font-size: 15px; }

    .ig-footer > span { font-size: 8px; letter-spacing: 2.3px; }
}

@media (max-width: 390px) {
    .ig-hero { min-height: 380px; }
    .ig-hero-copy { top: 28px; }
    .ig-mascot { width: 300px; right: -90px; }
}

@media (prefers-reduced-motion: reduce) {
    .ig-body { scroll-behavior: auto; }
    .ig-body * { transition: none !important; }
}

/* ---------------------------------------------------------------- */
/* IronGate OTC — páginas de autenticação (login, cadastro, etc)      */
/* Card branco flutuando sobre o fundo escuro com o mascote — mobile  */
/* usa bg-login-v.jpg (retrato), telas mais largas trocam pra          */
/* bg-login-h.jpg (paisagem). Reaproveita label/input/.alert de         */
/* style.css (já ficam bem num card claro) e .ig-pill-lang daqui        */
/* mesmo pro seletor de idioma no rodapé.                              */
/* ---------------------------------------------------------------- */

/* Selector qualificado com "body" (não só ".ig-auth-body") pra empatar em
   especificidade com "body.ig-body" (que define um `background:` shorthand
   navy — shorthand zera background-image pra "none" — e venceria por ter
   maior especificidade que uma classe sozinha, mesmo vindo antes no
   arquivo). Empatada a especificidade, a ordem no arquivo decide: esta
   regra vem depois, então vence. */
body.ig-auth-body {
    margin: 0;
    min-height: 100vh;
    background-color: var(--navy-950);
    background-image: url('/assets/img/bg-login-v.jpg');
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
}

@media (min-width: 761px) {
    body.ig-auth-body {
        background-image: url('/assets/img/bg-login-h.jpg');
        background-position: center;
        background-attachment: fixed;
    }
}

.ig-auth-wrap {
    max-width: 440px;
    margin: 0 auto;
    padding: 0 16px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ig-auth-logo {
    display: block;
    width: 190px;
    max-width: 58vw;
    height: auto;
    margin: 40px 0 0;
}

.ig-auth-mascot {
    display: block;
    width: min(300px, 76vw);
    height: auto;
    margin: -6px 0 -22px;
    filter: drop-shadow(0 20px 34px rgba(0, 20, 60, .5));
}

.ig-auth-card {
    width: 100%;
    background: var(--branco);
    border-radius: 28px;
    box-shadow: 0 30px 70px rgba(0, 8, 24, .5);
    padding: 32px 26px 28px;
    position: relative;
    z-index: 1;
}

/* Formulários sem mascote (ex: criar conta) — sem a imagem acima pra
   empurrar o card, precisa de um respiro próprio abaixo do logo. */
.ig-auth-card--no-mascot { margin-top: 22px; }

.ig-auth-card input:focus,
.ig-auth-card select:focus,
.ig-auth-card textarea:focus {
    border-color: var(--ig-gold);
    box-shadow: 0 0 0 3px rgba(231, 171, 61, .25);
}

.ig-auth-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--cinza-900);
    margin: 0 0 20px;
}

.ig-auth-password-wrap { position: relative; }
.ig-auth-password-wrap input { padding-right: 44px; }

.ig-auth-eye {
    position: absolute;
    right: 12px;
    top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: var(--cinza-500);
}
.ig-auth-eye:hover { color: var(--cinza-700); }

.ig-auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    border: 1px solid #ffd878;
    border-radius: 16px;
    padding: 15px 20px;
    font-size: 1.02rem;
    font-weight: 700;
    font-family: var(--font);
    color: #07101f;
    background: linear-gradient(100deg, var(--ig-gold-light), #d69a2d);
    box-shadow: 0 12px 32px rgba(221, 157, 41, .25);
    margin-top: 4px;
    cursor: pointer;
    transition: transform .2s ease, filter .2s ease;
}
.ig-auth-btn:hover { transform: translateY(-1px); filter: brightness(1.06); text-decoration: none; }

.ig-auth-btn-secondary {
    display: block;
    width: 100%;
    text-align: center;
    border: 1px solid rgba(120, 140, 170, .5);
    border-radius: 16px;
    padding: 14px 20px;
    font-size: 0.98rem;
    font-weight: 600;
    font-family: var(--font);
    color: var(--cinza-700);
    background: var(--cinza-100);
    cursor: pointer;
}
.ig-auth-btn-secondary:hover { background: var(--cinza-300); text-decoration: none; }

.ig-auth-footer-text {
    text-align: center;
    color: var(--cinza-500);
    margin-top: 18px;
    font-size: 0.92rem;
}
.ig-auth-footer-text a { color: #b9791b; font-weight: 700; }

.ig-auth-lang { margin-top: 26px; }
