/* =============================================================================
   RivalScan — global.css
   Reset, variáveis CSS, tipografia base, fundo global
   Carregado em TODAS as páginas (auth + dashboard + admin)
   ============================================================================= */

/* ── Reset ───────────────────────────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ── Variáveis CSS (fonte da verdade visual) ─────────────────────────────── */
:root {
    /* Fundos */
    --bg-main:        #0F1923;
    --bg-secondary:   #152232;
    --bg-tertiary:    #1A2B3D;

    /* Cores de destaque */
    --cyan:           #00D4FF;
    --blue:           #2563EB;
    --purple:         #7C3AED;
    --gradient:       linear-gradient(135deg, #00D4FF, #7C3AED);

    /* Feedback */
    --success:        #10B981;
    --warning:        #F59E0B;
    --danger:         #EF4444;

    /* Texto */
    --text-dark:      #1A202C;
    --text-medium:    #4A5568;
    --text-light:     #A0AEC0;

    /* Bordas */
    --border-dark:    #2D3F52;
    --border-light:   #E2E8F0;

    /* Raios */
    --radius-card:    12px;
    --radius-btn:     8px;
    --radius-input:   8px;
}

/* ── Base HTML / Body ────────────────────────────────────────────────────── */
html, body {
    height: 100%;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    background-color: var(--bg-main);
    color: #E2E8F0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Grid de fundo (global — todas as telas) ─────────────────────────────── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

/* ── Tipografia base ─────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: #F0F4F8;
}

p { line-height: 1.6; }

a {
    color: var(--cyan);
    text-decoration: none;
    transition: opacity 0.2s;
}

a:hover { opacity: 0.8; }

img { max-width: 100%; display: block; }

/* ── Utilitários gerais ──────────────────────────────────────────────────── */
.text-light   { color: var(--text-light); }
.text-cyan    { color: var(--cyan); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger  { color: var(--danger); }

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}