/* ARQUIVO: public/css/style_Welcome.css */

/* --- VARIÁVEIS GLOBAIS --- */
:root {
    /* Cores Institucionais */
    --primary-color: #ff4500; /* Laranja Padrão GMC */
    
    /* Cores das Tribos (Identidade Dual) */
    --asphalt-color: #e0e0e0; /* Prata/Gelo (Street) */
    --dirt-color: #ff5722;    /* Laranja Barro (Off-road) */
    --street-neon: #00bcd4;   /* Ciano Neon (Detalhes Street) */
    
    /* Cores de Fundo e Texto */
    --dark-bg: #0f0f0f;
    --card-bg: #1a1a1a;
    --text-color: #f0f0f0;
    
    /* Usabilidade Mobile */
    --touch-target: 50px;
    --header-height: 70px;
}

/* --- RESET & BASE --- */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    -webkit-tap-highlight-color: transparent; /* Remove flash azul no toque (Android) */
}

body { 
    background-color: var(--dark-bg); 
    color: var(--text-color); 
    font-family: 'Segoe UI', Roboto, Helvetica, sans-serif;
    overflow-x: hidden; 
    font-size: 16px; /* Base legível para mobile */
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* --- HEADER / NAVBAR (APP STYLE) --- */
.main-header {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(15, 15, 15, 0.95);
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #333;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.logo-text { 
    font-weight: 900; 
    font-size: 1.5rem; 
    letter-spacing: 1px; 
    color: #fff; 
    text-transform: uppercase;
}
.logo-text span { color: var(--dirt-color); }

/* Links de navegação (Escondidos no celular para limpar a tela) */
.nav-links { display: flex; gap: 15px; align-items: center; }
.nav-item { display: none; font-size: 0.9rem; font-weight: 600; color: #ccc; }
.nav-item:hover { color: #fff; }

/* Botão de Login sempre visível */
.btn-login {
    display: flex !important;
    align-items: center;
    gap: 8px;
    background: #222;
    border: 1px solid var(--primary-color);
    padding: 8px 16px;
    border-radius: 20px; /* Redondo estilo App */
    color: var(--primary-color);
    font-weight: bold;
    font-size: 0.85rem;
}
.btn-login:active { background: var(--primary-color); color: #fff; }

/* --- HERO SECTION (IDENTIDADE CAAR) --- */
.hero {
    min-height: 100vh;
    
    /* CAMINHO DA IMAGEM CORRIGIDO PARA A RAIZ/IMAGES */
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(15,15,15,1)), 
                url('../../images/fundo.jpg');
                
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    padding-top: var(--header-height);
}

/* Status do Sistema (Rede Mesh) */
.system-status {
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    color: #00ff00;
    background: rgba(0,0,0,0.6);
    padding: 4px 10px;
    border-radius: 12px;
    border: 1px solid #00ff00;
    margin-bottom: 20px;
}

/* Título Principal - Efeito Dual World */
.hero h1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
    margin-bottom: 20px;
}

.hero-top-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 3px;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

/* O Grande Truque Visual: Asfalto vs Terra */
.dual-world-text {
    font-size: 3.5rem; /* Grande no mobile */
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    
    /* Gradiente Diagonal Cortante */
    background: linear-gradient(
        115deg, 
        var(--asphalt-color) 0%, 
        var(--asphalt-color) 45%, 
        #000 45%,   /* O "Rasgo" Preto */
        #000 55%, 
        var(--dirt-color) 55%, 
        var(--dirt-color) 100%
    );
    
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent; /* Fallback */
    
    filter: drop-shadow(0px 4px 0px rgba(0,0,0,0.5));
}

.hero p {
    font-size: 1rem;
    color: #ddd;
    margin-bottom: 40px;
    max-width: 90%;
    line-height: 1.5;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8); /* Sombra para leitura no fundo novo */
}

.hero p b { color: #fff; }

/* Botões de Ação (CTA) */
.cta-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 350px;
}

.btn-cta {
    display: block;
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 12px;
    border: none;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
}
.btn-primary:active { transform: scale(0.98); background: #e03e00; }

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    backdrop-filter: blur(5px);
}
.btn-secondary:active { background: rgba(255, 255, 255, 0.2); }

/* --- PILARES (VITRINE) --- */
.pillars {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 40px 20px;
    background: #111;
}

.pillar-card {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 16px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.2s;
}

.pillar-card:active { background: #222; border-color: #555; }

.pillar-card i {
    font-size: 2.5rem;
    color: #666;
    min-width: 50px;
    text-align: center;
}

.pillar-card h2 {
    font-size: 1.4rem;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.pillar-card p {
    font-size: 0.9rem;
    color: #888;
}

/* --- ESTATÍSTICAS (LIVE) --- */
.live-section {
    padding: 40px 20px;
    background: #0f0f0f;
    text-align: center;
}

.section-title {
    font-size: 1.8rem;
    text-transform: uppercase;
    margin-bottom: 10px;
    color: #fff;
    border-bottom: 2px solid #333;
    display: inline-block;
    padding-bottom: 5px;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 colunas no celular */
    gap: 15px;
    margin-top: 30px;
}

.stat-box {
    background: #1a1a1a;
    padding: 20px 10px;
    border-radius: 12px;
    border-bottom: 3px solid var(--primary-color);
}

.stat-number { font-size: 2rem; font-weight: 800; color: #fff; line-height: 1; }
.stat-label { font-size: 0.75rem; color: #777; text-transform: uppercase; margin-top: 5px; font-weight: 600; }

/* O último item ocupa duas colunas se for ímpar */
.stat-box:last-child:nth-child(odd) { grid-column: span 2; }


/* --- FORMULÁRIOS (LOGIN & CADASTRO) --- */
.auth-container {
    min-height: 100vh;
    padding: 100px 20px 40px 20px;
    background: #111;
    display: flex;
    justify-content: center;
}

.auth-box {
    width: 100%;
    max-width: 450px;
}

.auth-title { text-align: center; font-size: 2rem; margin-bottom: 30px; color: #fff; }
.auth-title span { color: var(--primary-color); }

/* Inputs Amigáveis para Toque */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; color: #aaa; font-size: 0.9rem; }
.form-control {
    width: 100%;
    height: 52px; /* Altura confortável para digitar */
    padding: 0 15px;
    background: #222;
    border: 1px solid #444;
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    transition: 0.3s;
}
.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    background: #2a2a2a;
}

.btn-submit {
    width: 100%;
    height: 56px;
    background: var(--primary-color);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-top: 10px;
    cursor: pointer;
}

/* SELETOR DE TRIBOS (CADASTRO) */
.tribe-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

.tribe-option {
    background: #1a1a1a;
    border: 2px solid #333;
    border-radius: 12px;
    padding: 25px 10px;
    text-align: center;
    cursor: pointer;
    opacity: 0.6;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.tribe-option i { font-size: 2.5rem; display: block; margin-bottom: 10px; }
.tribe-option h3 { font-size: 1rem; font-weight: 800; text-transform: uppercase; }
.tribe-option small { font-size: 0.75rem; color: #888; }

/* Estados Selecionados */
.selected-street {
    border-color: var(--street-neon);
    background: rgba(0, 188, 212, 0.08);
    opacity: 1;
    box-shadow: 0 0 15px rgba(0, 188, 212, 0.2);
}
.selected-street i, .selected-street h3 { color: var(--street-neon); }

.selected-offroad {
    border-color: var(--dirt-color);
    background: rgba(255, 87, 34, 0.08);
    opacity: 1;
    box-shadow: 0 0 15px rgba(255, 87, 34, 0.2);
}
.selected-offroad i, .selected-offroad h3 { color: var(--dirt-color); }


/* --- PARCEIROS & FOOTER --- */
.partners { padding: 40px 20px; background: #080808; text-align: center; }
.partners-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; opacity: 0.5; }
.partner-logo { font-size: 0.9rem; font-weight: bold; color: #555; text-transform: uppercase; border: 1px solid #333; padding: 5px 10px; border-radius: 4px; }

footer { background: #000; padding: 40px 20px; text-align: center; border-top: 1px solid #222; font-size: 0.9rem; color: #666; }
.footer-info a { color: var(--primary-color); font-weight: bold; }


/* --- DESKTOP & TABLET (MEDIA QUERIES) --- */
@media (min-width: 769px) {
    /* Mostra links da navbar no PC */
    .nav-item { display: block; margin-right: 20px; }
    
    /* Hero ajustado para telas grandes */
    .hero h1 { margin-bottom: 30px; }
    .hero-top-text { font-size: 2.5rem; letter-spacing: 10px; }
    .dual-world-text { font-size: 7rem; } /* Gigante no PC */
    
    .cta-group { flex-direction: row; justify-content: center; }
    .btn-cta { width: 300px; transition: transform 0.2s; }
    .btn-cta:hover { transform: translateY(-5px); }

    /* Cards lado a lado */
    .pillars {
        flex-direction: row;
        justify-content: center;
        gap: 30px;
        padding: 80px 0;
    }
    
    .pillar-card {
        flex-direction: column;
        text-align: center;
        width: 320px;
        height: 400px;
        justify-content: center;
    }
    
    .pillar-card i { font-size: 4rem; margin-bottom: 20px; }
    .pillar-card:hover { border-color: var(--primary-color); transform: translateY(-10px); }
    
    /* Stats em linha */
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1000px;
        margin: 50px auto;
    }
    .stat-box:last-child:nth-child(odd) { grid-column: auto; }
}

/* --- ATUALIZAÇÃO NO CSS (style_Welcome.css) --- */

/* Adicione esta classe especial para o BODY das páginas de auth (login/cadastro) */
.auth-body {
    /* A mesma imagem do index */
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.6)), 
                url('../../images/fundo.jpg');
    background-size: cover;
    /* Posição inicial: CENTRO (Mostra os dois mundos) */
    background-position: 50% center; 
    background-repeat: no-repeat;
    background-attachment: fixed; /* Mantém a imagem fixa enquanto rola */
    
    /* A MÁGICA DA ANIMAÇÃO: Deslizamento suave de 1.5 segundos */
    transition: background-position 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- ESTADOS DO FUNDO (O Deslizamento) --- */
/* Quando STREET é selecionado, move o foco para a esquerda (Pista) */
body.bg-street-focus {
    background-position: 15% center !important; /* Ajuste a % se precisar focar mais/menos */
}

/* Quando OFFROAD é selecionado, move o foco para a direita (Terra) */
body.bg-offroad-focus {
    background-position: 85% center !important; /* Ajuste a % se precisar focar mais/menos */
}


/* --- AJUSTE NOS CONTAINERS DE AUTH --- */
/* Agora o container principal precisa ser transparente para ver o fundo */
.auth-container {
    background: transparent; /* Era #111 antes */
    min-height: 100vh;
    padding: 60px 20px; /* Reduzi um pouco o padding superior */
    display: flex;
    justify-content: center;
    align-items: center; /* Centraliza verticalmente */
}

/* A caixa do formulário ganha transparência e desfoque para destacar */
.auth-box {
    width: 100%;
    max-width: 450px;
    background: rgba(20, 20, 20, 0.30); /* Fundo semi-transparente */
    backdrop-filter: blur(1px); /* Efeito de vidro fosco (Glassmorphism) */
    padding: 30px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}