/* ==============================================================
   LOGIN.CSS — 90+ Futebol Clube
   Retematizado com os tokens do padrão visual do feed/index (ver
   global.css / index.css) — mesmo verde da marca, mesmo glass.
   body::before e a grade de pontos já seguem o mesmo padrão estático
   do index.css. O painel "quadro tático" (showcase) foi mantido —
   é a identidade visual própria da tela de login.
   ============================================================== */
:root {
    --bg: #0A0D12;
    --accent-rgb: 5, 189, 158;
    --accent: #05BD9E;
    --accent-dark: #049A81;
    --accent-bright: #06EAC4;
    --text-primary: #F5F6F7;
    --text-secondary: #9AA3AF;
    --text-tertiary: #5C6470;
    --text-body: #C7CDD6;
    --danger: #E5484D;
    --danger-light: #F0787C;
    --danger-rgb: 229, 72, 77;
    --surface-solid: #12161D;
    --live: #FF6B6B;
    --glass-bg: rgba(18, 22, 29, 0.4);
    --glass-bg-hover: rgba(18, 22, 29, 0.55);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-hover: rgba(var(--accent-rgb), 0.25);
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ===== RESET & BASE ===== */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html, body {
            height: 100%;
        }

        body {
            font-family: 'Inter', sans-serif;
            height: 100vh;
            height: 100dvh; /* corrige a barra de endereço móvel "comendo" viewport */
            background: var(--bg);
            color: var(--text-primary);
            position: relative;
            overflow: hidden; /* nunca rola, em nenhum tamanho de tela */
            display: flex;
            flex-direction: column; /* empilha o menu topo (quando visível) + o login-page */
        }

        /* ===== MENU TOPO — SOMENTE DESKTOP =====
           No mobile o menu institucional fica oculto (o login mobile já é
           enxuto e não tem espaço sobrando pra topbar). A partir de 992px
           (mesmo breakpoint do painel direito) ele aparece, e o .login-page
           deixa de ocupar 100dvh sozinho pra dividir a altura com ele — ver
           "flex: 1" em .login-page mais abaixo. */
        .topo-institucional-wrap {
            display: none;
            flex-shrink: 0;
        }

        @media (min-width: 992px) {
            .topo-institucional-wrap {
                display: block;
            }
        }

        /* Fundo com campo de futebol estilizado (ambiente da página toda) */
        body::before {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 720px;
            background: radial-gradient(ellipse 900px 600px at 50% -10%, rgba(var(--accent-rgb), 0.08) 0%, transparent 65%);
            z-index: -2;
            pointer-events: none;
        }

        body::after {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-image: 
                linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
                linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
            background-size: 50px 50px;
            z-index: -1;
            pointer-events: none;
        }

        /* ===== LAYOUT PRINCIPAL (dividido, tipo Claude) =====
           Altura sempre travada em 100dvh (com fallback 100vh) e overflow
           hidden, em QUALQUER largura — não só desktop. Todo o dimensionamento
           interno usa clamp() com unidades vh/vw, então o conteúdo encolhe
           sozinho pra caber, em vez de precisar de scroll como rede de
           segurança. */
        .login-page {
            position: relative;
            flex: 1;
            min-height: 0; /* permite ao grid encolher dentro do espaço restante do flex */
            display: grid;
            grid-template-columns: 1fr;
            overflow: hidden;
        }

        .login-col-form {
            position: relative;
            height: 100%;
            display: flex;
            padding: clamp(10px, 3vh, 48px) clamp(16px, 5vw, 64px);
            overflow: hidden;
        }

        /* Painel direito só existe em telas grandes */
        .login-col-showcase {
            display: none;
        }

        @media (min-width: 992px) {
            .login-page {
                grid-template-columns: minmax(460px, 620px) 1fr;
            }

            .login-col-showcase {
                display: flex;
                flex-direction: column;
                justify-content: flex-end;
                height: 100%;
                position: relative;
                overflow: hidden;
                padding: 56px;
                background: linear-gradient(160deg, #0c0f13 0%, #071b13 55%, #04120c 100%);
                border-left: 1px solid var(--glass-border);
            }
        }

        /* ===== BOLAS DECORATIVAS (coluna esquerda) ===== */
        .bola-decorativa {
            position: fixed;
            border-radius: 50%;
            background: radial-gradient(circle at 30% 30%, rgba(var(--accent-rgb), 0.04), transparent 70%);
            pointer-events: none;
            z-index: 0;
        }

        .bola-1 {
            width: 300px;
            height: 300px;
            top: -100px;
            right: -100px;
            animation: floatBola 20s ease-in-out infinite;
        }

        .bola-2 {
            width: 200px;
            height: 200px;
            bottom: -60px;
            left: -60px;
            animation: floatBola 25s ease-in-out infinite reverse;
        }

        @keyframes floatBola {
            0%, 100% { transform: translate(0, 0) scale(1); }
            33% { transform: translate(20px, -30px) scale(1.1); }
            66% { transform: translate(-20px, 20px) scale(0.9); }
        }

        /* ===== TEXTO DE DESTAQUE (acima do card, como no Claude) ===== */
        .login-wrapper {
            width: 100%;
            max-width: 440px;
            margin: auto;
            position: relative;
            z-index: 1;
            animation: fadeUp 0.8s var(--ease) forwards;
            opacity: 0;
            /* Nunca deixa o wrapper exigir mais altura do que a coluna tem —
               é o que permite ao conteúdo interno (que usa clamp com vh)
               encolher de verdade em vez de estourar e forçar scroll. */
            max-height: 100%;
            display: flex;
            flex-direction: column;
            justify-content: center;
            overflow: hidden;
        }

        @keyframes fadeUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .hero-text {
            text-align: center;
            margin-bottom: clamp(6px, 2.2vh, 28px);
            flex-shrink: 0;
        }

        .hero-text .logo-mini {
            display: block;
            width: clamp(90px, 10vh, 160px);
            height: auto;
            margin: 0 auto clamp(6px, 1.5vh, 20px);
            filter: drop-shadow(0 0 24px rgba(var(--accent-rgb), 0.18));
            transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
        }

        .hero-text .logo-mini:hover {
            transform: scale(1.05) rotate(-2deg);
        }

        .hero-text h1 {
            font-size: clamp(1.05rem, 3.6vh, 1.9rem);
            font-weight: 900;
            line-height: 1.15;
            letter-spacing: -0.5px;
            background: linear-gradient(135deg, #ffffff 30%, var(--text-secondary) 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            margin-bottom: clamp(4px, 1.2vh, 10px);
        }

        @media (min-width: 992px) {
            .hero-text {
                text-align: left;
            }

            .hero-text .logo-mini {
                margin: 0 0 clamp(8px, 2vh, 24px);
            }

            .hero-text h1 {
                font-size: clamp(1.4rem, 4.2vh, 2.4rem);
            }
        }

        /* ===== CARD DE LOGIN ===== */
        .login-container {
            position: relative;
            background: rgba(18, 22, 29, 0.6);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            padding: clamp(14px, 3.2vh, 36px) clamp(18px, 4vw, 36px) clamp(12px, 2.8vh, 32px);
            border-radius: clamp(16px, 3vh, 28px);
            border: 1px solid var(--glass-border);
            box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
            transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
            flex-shrink: 1;
            min-height: 0;
            overflow: hidden;
            /* 🔥 FIX: Chrome/Firefox às vezes "vazam" o backdrop-filter para
               fora do border-radius nas quinas, gerando pontinhas escuras.
               Forçar uma máscara do próprio formato do elemento faz o
               navegador recortar o blur corretamente nas bordas arredondadas. */
            -webkit-mask-image: -webkit-radial-gradient(white, white);
            mask-image: radial-gradient(white, white);
        }

        .login-container:hover {
            border-color: rgba(var(--accent-rgb), 0.15);
            box-shadow: 0 30px 100px rgba(var(--accent-rgb), 0.05);
        }

        /* Overlay de carregamento enquanto valida o login do Google */
        .card-loading {
            position: absolute;
            inset: 0;
            display: none;
            align-items: center;
            justify-content: center;
            background: rgba(15, 20, 27, 0.75);
            backdrop-filter: blur(6px);
            border-radius: 28px;
            z-index: 5;
        }

        .card-loading.ativo {
            display: flex;
        }

        /* 🔥 CONSOLIDADO (23/08): .spinner/@keyframes girar duplicava
           exatamente o componente compartilhado .spinner-90 (global.css).
           O HTML agora usa a classe compartilhada direto. */

        /* ===== MENSAGEM DE ERRO/SUCESSO ===== */
        .mensagem {
            text-align: center;
            padding: clamp(8px, 1.6vh, 12px) 16px;
            border-radius: 12px;
            margin-bottom: clamp(10px, 2vh, 20px);
            font-size: 0.85rem;
            font-weight: 500;
            transition: all 0.3s var(--ease);
        }

        .mensagem:empty {
            display: none;
            padding: 0;
            margin: 0;
        }

        .mensagem.erro {
            background: rgba(var(--danger-rgb), 0.08);
            border: 1px solid rgba(var(--danger-rgb), 0.15);
            color: var(--danger-light);
        }

        .mensagem.sucesso {
            background: rgba(var(--accent-rgb), 0.08);
            border: 1px solid rgba(var(--accent-rgb), 0.15);
            color: var(--accent);
        }

        /* ===== BOTÃO GOOGLE =====
           .google-btn-wrap é o que o usuário vê: um botão com a cara do 90+.
           .google-btn-container é o botão REAL do Google, renderizado por
           cima, do mesmo tamanho, mas com opacity:0 — é ele quem recebe o
           clique de verdade (o Google não permite disparar o clique dele via
           JS, então em vez de esconder precisamos sobrepor). */
        .google-btn-wrap {
            position: relative;
            margin-bottom: clamp(8px, 2vh, 22px);
            border-radius: 999px;
        }

        .google-btn-custom {
            width: 100%;
            min-height: clamp(36px, 6vh, 44px);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            padding: 0 16px;
            background: var(--glass-bg);
            border: 1px solid var(--glass-border);
            border-radius: 999px;
            color: var(--text-primary);
            font-family: 'Inter', sans-serif;
            font-weight: 600;
            font-size: clamp(0.85rem, 1.7vh, 0.95rem);
            cursor: pointer;
            transition: background 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.15s var(--ease);
        }

        .google-btn-custom .google-icon {
            width: 18px;
            height: 18px;
            flex-shrink: 0;
        }

        /* :hover/:active aplicados via ancestral (.google-btn-wrap), porque o
           elemento que realmente recebe o ponteiro é o overlay do Google,
           não o botão visual — mas o hover sobe pelos ancestrais em comum. */
        .google-btn-wrap:hover .google-btn-custom {
            background: var(--glass-bg-hover);
            border-color: rgba(var(--accent-rgb), 0.35);
        }

        .google-btn-wrap:active .google-btn-custom {
            transform: scale(0.98);
        }

        /* ===== DIVISOR "OU" ===== */
        .divisor-ou {
            display: flex;
            align-items: center;
            gap: 14px;
            margin-bottom: clamp(8px, 2vh, 22px);
            color: var(--text-tertiary);
            font-size: 0.8rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .divisor-ou::before,
        .divisor-ou::after {
            content: '';
            flex: 1;
            height: 1px;
            background: var(--glass-bg-hover);
        }

        /* ===== FORMULÁRIO ===== */
        .form-group {
            margin-bottom: clamp(8px, 1.8vh, 20px);
            position: relative;
        }

        .form-group label {
            display: block;
            font-size: 0.82rem;
            font-weight: 600;
            color: var(--text-body);
            margin-bottom: clamp(3px, 0.8vh, 6px);
            letter-spacing: 0.3px;
        }

        .form-group .input-wrapper {
            position: relative;
            display: flex;
            align-items: center;
            background: var(--glass-bg);
            border-radius: 14px;
            border: 1px solid var(--glass-border);
            transition: all 0.3s var(--ease);
            overflow: hidden;
        }

        .form-group .input-wrapper:focus-within {
            border-color: var(--accent);
            box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.08);
            background: var(--glass-bg-hover);
        }

        .form-group .input-icon {
            padding: 0 14px 0 16px;
            font-size: 0.95rem;
            opacity: 0.45;
            user-select: none;
            display: flex;
            align-items: center;
            flex-shrink: 0;
        }

        .form-group .input-wrapper:focus-within .input-icon {
            opacity: 0.85;
            color: var(--accent);
        }

        .form-group input {
            flex: 1;
            min-width: 0;
            padding: clamp(9px, 1.8vh, 14px) 16px clamp(9px, 1.8vh, 14px) 4px;
            background: transparent;
            border: none;
            outline: none;
            color: var(--text-primary);
            font-size: 1rem;
            font-family: 'Inter', sans-serif;
            font-weight: 500;
        }

        .form-group input::placeholder {
            color: var(--text-tertiary);
            font-weight: 400;
            font-size: 0.95rem;
        }

        .form-group input:-webkit-autofill,
        .form-group input:-webkit-autofill:hover,
        .form-group input:-webkit-autofill:focus,
        .form-group input:-webkit-autofill:active {
            -webkit-text-fill-color: var(--text-primary) !important;
            -webkit-box-shadow: 0 0 0 1000px rgba(18, 22, 29, 0.95) inset !important;
            box-shadow: 0 0 0 1000px rgba(18, 22, 29, 0.95) inset !important;
            caret-color: var(--text-primary);
            transition: background-color 5000s ease-in-out 0s;
        }

        .form-group input:autofill {
            filter: none;
        }

        /* ===== OPÇÕES EXTRAS ===== */
        .form-options {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin: clamp(8px, 1.8vh, 20px) 0 clamp(10px, 2.2vh, 26px);
            font-size: 0.85rem;
            flex-wrap: wrap;
            gap: 10px;
        }

        .form-options .remember {
            display: flex;
            align-items: center;
            gap: 8px;
            color: var(--text-secondary);
            cursor: pointer;
            user-select: none;
        }

        .form-options .remember input[type="checkbox"] {
            appearance: none;
            width: 18px;
            height: 18px;
            border-radius: 6px;
            border: 2px solid #334155;
            background: transparent;
            cursor: pointer;
            transition: all 0.2s var(--ease);
            position: relative;
            flex-shrink: 0;
        }

        .form-options .remember input[type="checkbox"]:checked {
            background: var(--accent);
            border-color: var(--accent);
        }

        .form-options .remember input[type="checkbox"]:checked::after {
            content: '✓';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            color: #06110C;
            font-size: 12px;
            font-weight: 700;
        }

        .form-options a {
            color: var(--accent);
            text-decoration: none;
            font-weight: 500;
            transition: color 0.3s var(--ease);
        }

        .form-options a:hover {
            color: var(--accent-bright);
        }

        /* ===== BOTÃO ===== */
        .btn-login {
            width: 100%;
            padding: clamp(10px, 2vh, 16px);
            background: linear-gradient(135deg, var(--accent), var(--accent-dark));
            border: none;
            border-radius: 14px;
            font-family: 'Inter', sans-serif;
            font-weight: 700;
            font-size: clamp(0.92rem, 1.9vh, 1.05rem);
            color: #06110C;
            cursor: pointer;
            transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
            box-shadow: 0 4px 25px rgba(var(--accent-rgb), 0.2);
            letter-spacing: 0.3px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }

        .btn-login:hover {
            transform: translateY(-3px) scale(1.01);
            box-shadow: 0 12px 45px rgba(var(--accent-rgb), 0.35);
            background: linear-gradient(135deg, var(--accent-bright), var(--accent));
        }

        .btn-login:active {
            transform: scale(0.97);
        }

        .btn-login .arrow {
            font-size: 1.2rem;
            transition: transform 0.3s var(--ease);
        }

        .btn-login:hover .arrow {
            transform: translateX(4px);
        }

        /* ===== LINK CADASTRO ===== */
        .register-link {
            text-align: center;
            margin-top: clamp(8px, 2.2vh, 26px);
            color: var(--text-secondary);
            font-size: 0.9rem;
            flex-shrink: 0;
        }

        .register-link a {
            color: var(--accent);
            text-decoration: none;
            font-weight: 600;
            transition: all 0.3s var(--ease);
            position: relative;
        }

        .register-link a::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--accent);
            transition: width 0.3s var(--ease);
        }

        .register-link a:hover::after {
            width: 100%;
        }

        .register-link a:hover {
            color: var(--accent-bright);
        }

        /* ============================================================
           PAINEL DIREITO — "QUADRO TÁTICO" DO 90+
           Campo desenhado em wireframe + cards flutuantes com momentos
           reais do app (gol, placar ao vivo, curtidas, seguidores).
           ============================================================ */

        .showcase-bg {
            position: absolute;
            inset: 0;
            z-index: 0;
        }

        .pitch-svg {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
        }

        .pitch-svg .linha {
            fill: none;
            stroke: rgba(var(--accent-rgb), 0.16);
            stroke-width: 1.5;
        }

        .pitch-svg .ponto {
            fill: rgba(var(--accent-rgb), 0.25);
        }

        .floodlight {
            position: absolute;
            border-radius: 50%;
            pointer-events: none;
            filter: blur(10px);
        }

        .floodlight-1 {
            width: 420px;
            height: 420px;
            top: -160px;
            left: -120px;
            background: radial-gradient(circle, rgba(var(--accent-rgb), 0.18), transparent 70%);
            animation: pulsarLuz 8s ease-in-out infinite;
        }

        .floodlight-2 {
            width: 380px;
            height: 380px;
            bottom: -140px;
            right: -100px;
            background: radial-gradient(circle, rgba(45, 212, 191, 0.12), transparent 70%);
            animation: pulsarLuz 10s ease-in-out infinite reverse;
        }

        @keyframes pulsarLuz {
            0%, 100% { opacity: 0.6; transform: scale(1); }
            50% { opacity: 1; transform: scale(1.08); }
        }

        .ball-ambient {
            position: absolute;
            width: 50px;
            height: 50px;
            top: 50%;
            left: 50%;
            animation: rolarBola 10s ease-in-out infinite alternate;

            /* 🔥 Bola em PNG usada como máscara: o navegador pinta a cor
               abaixo através da silhueta da imagem. Trocar a cor/opacidade
               aqui não exige editar a imagem — só mexer no rgba(). */
            background-color: rgba(var(--accent-rgb), 0.35);
            -webkit-mask-image: url('../assets/img/bola.webp');
            mask-image: url('../assets/img/bola.webp');
            -webkit-mask-size: contain;
            mask-size: contain;
            -webkit-mask-repeat: no-repeat;
            mask-repeat: no-repeat;
            -webkit-mask-position: center;
            mask-position: center;
        }

        /* 🔥 Rola devagar para a direita e volta (evita "pulo" ao reiniciar
           o loop). O rotate acompanha o deslocamento pra parecer que ela
           está realmente rolando, não só deslizando. */
        @keyframes rolarBola {
            0% { transform: translate(-50%, -50%) translateX(-120px) rotate(0deg); }
            100% { transform: translate(-50%, -50%) translateX(120px) rotate(540deg); }
        }

        .hero-showcase-text {
            position: relative;
            z-index: 2;
            max-width: 420px;
        }

        .hero-showcase-text h2 {
            font-size: clamp(1.3rem, 3vh, 1.9rem);
            font-weight: 800;
            line-height: 1.2;
            color: var(--text-primary);
            margin-bottom: 10px;
        }

        .hero-showcase-text p {
            color: #9fb3ac;
            font-size: 0.95rem;
            line-height: 1.55;
        }

        .showcase-cards {
            position: absolute;
            inset: 0;
            z-index: 1;
        }

        .float-card {
            position: absolute;
            display: flex;
            align-items: center;
            gap: 10px;
            background: rgba(20, 30, 26, 0.55);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border: 1px solid var(--glass-border);
            border-radius: 16px;
            padding: 12px 16px;
            box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
            font-size: 0.85rem;
            color: var(--text-primary);
            max-width: 250px;
            animation: flutuar 7s ease-in-out infinite;
        }

        .float-card strong {
            color: #ffffff;
        }

        .float-card .card-emoji {
            font-size: 1.3rem;
            flex-shrink: 0;
        }

        .float-card .card-meta {
            display: block;
            margin-top: 4px;
            font-size: 0.75rem;
            color: #8fa39c;
        }

        @keyframes flutuar {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-14px); }
        }

        .card-gol { top: 12%; left: 8%; }
        .card-placar { top: 40%; right: 6%; }
        .card-top { bottom: 30%; left: 4%; }
        .card-likes { top: 64%; right: 16%; }
        .card-follow { bottom: 10%; right: 24%; }

        /* Card de placar ao vivo tem estilo próprio */
        .card-placar {
            flex-direction: column;
            align-items: flex-start;
            gap: 6px;
        }

        .placar-live {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 0.72rem;
            font-weight: 700;
            letter-spacing: 0.4px;
            color: var(--live);
            text-transform: uppercase;
        }

        .dot-live {
            width: 7px;
            height: 7px;
            border-radius: 50%;
            background: var(--live);
            animation: piscarLive 1.4s ease-in-out infinite;
        }

        @keyframes piscarLive {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.25; }
        }

        .placar-times {
            display: flex;
            align-items: center;
            gap: 8px;
            font-family: 'Inter', sans-serif;
            font-weight: 800;
            font-size: 1.05rem;
            color: var(--text-primary);
            letter-spacing: 0.5px;
        }

        .placar-times span {
            font-size: 0.7rem;
            font-weight: 600;
            color: #8fa39c;
        }

        .avatar-mini {
            width: 28px;
            height: 28px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--accent), var(--accent-dark));
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.7rem;
            font-weight: 700;
            color: #06110C;
            flex-shrink: 0;
        }

        /* ===== RESPONSIVIDADE =====
           A partir daqui só ajustes de LARGURA (celular estreito) — a altura
           já é resolvida globalmente pelos clamp() com vh acima, então não
           existe mais bloco de "rede de segurança" nem breakpoint de altura
           pra desktop: o mesmo mecanismo fluido cobre telas baixas em
           qualquer largura. */
        @media (max-width: 480px) {
            .bola-1 {
                width: 200px;
                height: 200px;
                top: -60px;
                right: -60px;
            }

            .bola-2 {
                width: 150px;
                height: 150px;
                bottom: -40px;
                left: -40px;
            }
        }

        /* ===== AVISO DE COOKIES ===== */
        .cookie-banner {
            position: fixed;
            left: clamp(10px, 2vw, 24px);
            right: clamp(10px, 2vw, 24px);
            bottom: clamp(10px, 2vh, 24px);
            z-index: 50;
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: space-between;
            gap: clamp(10px, 2vw, 20px);
            background: rgba(15, 20, 27, 0.85);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border: 1px solid var(--glass-border);
            border-radius: 16px;
            padding: clamp(12px, 2vh, 18px) clamp(16px, 2.5vw, 24px);
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
            max-width: 640px;
            margin: 0 auto;
            opacity: 0;
            transform: translateY(20px);
            pointer-events: none;
            transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
        }

        .cookie-banner.visivel {
            opacity: 1;
            transform: translateY(0);
            pointer-events: auto;
        }

        .cookie-banner-text {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            flex: 1 1 260px;
            color: var(--text-body);
            font-size: 0.82rem;
            line-height: 1.5;
        }

        .cookie-banner-text i {
            color: var(--accent);
            font-size: 1rem;
            margin-top: 2px;
            flex-shrink: 0;
        }

        .cookie-banner-text a {
            color: var(--accent);
            text-decoration: underline;
            font-weight: 600;
        }

        .cookie-banner-actions {
            display: flex;
            gap: 10px;
            flex-shrink: 0;
        }

        .cookie-btn {
            padding: 8px 16px;
            border-radius: 999px;
            font-family: 'Inter', sans-serif;
            font-weight: 600;
            font-size: 0.82rem;
            cursor: pointer;
            border: 1px solid transparent;
            transition: all 0.25s var(--ease);
            white-space: nowrap;
        }

        .cookie-btn-recusar {
            background: transparent;
            border-color: var(--glass-border-hover);
            color: var(--text-secondary);
        }

        .cookie-btn-recusar:hover {
            border-color: rgba(255, 255, 255, 0.3);
            color: var(--text-primary);
        }

        .cookie-btn-aceitar {
            background: linear-gradient(135deg, var(--accent), var(--accent-dark));
            color: #06110C;
            box-shadow: 0 4px 18px rgba(var(--accent-rgb), 0.25);
        }

        .cookie-btn-aceitar:hover {
            transform: translateY(-1px);
            box-shadow: 0 8px 24px rgba(var(--accent-rgb), 0.35);
        }

        @media (max-width: 480px) {
            .cookie-banner {
                left: 0;
                right: 0;
                bottom: 0;
                max-width: none;
                border-radius: 16px 16px 0 0;
                border-left: none;
                border-right: none;
                border-bottom: none;
                padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px));
                flex-direction: column;
                align-items: stretch;
            }

            .cookie-banner-text {
                /* 🔥 FIX: em coluna, "flex: 1 1 260px" (herdado do layout
                   desktop, que é em linha) faz o texto ESTICAR pra ocupar
                   toda a altura do banner, sobrando um vão vazio embaixo
                   dele antes dos botões. Em coluna o texto deve só ocupar
                   o próprio tamanho de conteúdo. */
                flex: none;
            }

            .cookie-banner-actions {
                justify-content: flex-end;
            }
        }

        /* ===== REDE DE SEGURANÇA PARA TELAS BAIXAS (qualquer largura) =====
           O clamp() já encolhe tudo continuamente, mas em telas realmente
           baixas (celular sem barra de endereço, notebook com pouca altura
           útil) a soma de tudo no mínimo do clamp ainda pode passar da altura
           disponível — e como é overflow:hidden, sobra corta em vez de
           encolher. Esses degraus extras baixam ainda mais o piso só quando
           a altura é curta, priorizando o formulário (que é o que importa)
           sobre o texto de destaque. */
        @media (max-height: 700px) {
            .hero-text {
                margin-bottom: clamp(4px, 1.4vh, 14px);
            }

            .hero-text .logo-mini {
                width: clamp(40px, 6vh, 90px);
                margin-bottom: clamp(4px, 1vh, 10px);
            }

            .hero-text h1 {
                font-size: clamp(0.95rem, 2.8vh, 1.5rem);
            }

            .login-container {
                padding: clamp(10px, 2.4vh, 24px) clamp(16px, 4vw, 28px) clamp(10px, 2vh, 22px);
            }

            .google-btn-wrap {
                min-height: clamp(32px, 5vh, 40px);
                margin-bottom: clamp(6px, 1.4vh, 14px);
            }

            .divisor-ou {
                margin-bottom: clamp(6px, 1.4vh, 14px);
            }

            .form-group {
                margin-bottom: clamp(6px, 1.2vh, 14px);
            }

            .form-group input {
                padding-top: clamp(6px, 1.2vh, 10px);
                padding-bottom: clamp(6px, 1.2vh, 10px);
            }

            .form-options {
                margin: clamp(6px, 1.2vh, 14px) 0 clamp(8px, 1.6vh, 18px);
            }

            .btn-login {
                padding: clamp(8px, 1.6vh, 12px);
            }

            .register-link {
                margin-top: clamp(6px, 1.6vh, 16px);
            }
        }

        /* Em telas extremamente baixas, o texto de destaque sai de cena —
           o formulário sozinho já cabe tranquilo e é a parte que importa. */
        @media (max-height: 620px) {
            .hero-text {
                display: none;
            }
        }

        /* Respeita quem prefere menos animação */
        @media (prefers-reduced-motion: reduce) {
            *, *::before, *::after {
                animation-duration: 0.001ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.001ms !important;
            }
        }
/* Compensa a barra de status no mobile/tablet, já que nesse breakpoint
   o menu institucional (.topo-institucional-wrap) fica oculto e o
   .login-col-form passa a ser o elemento mais próximo do topo */
@media (max-width: 991px) {
    .login-col-form {
        padding-top: calc(clamp(10px, 3vh, 48px) + env(safe-area-inset-top, 10px));
    }
}