:root {
    --bg: #0B0B0B;
    --bg2: #1a1a1a;
    --gold: #FFD54A;
    --txt: #FFD54A;
    --line: rgba(255, 213, 74, 0.2);
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', system-ui, sans-serif; }

body {
    background: radial-gradient(circle at center, #1a1a1a 0%, #0B0B0B 100%);
    color: var(--txt);
    min-height: 100vh;
    padding: 20px;
}

/* --- Login --- */
.tela-login { display: flex; align-items: center; justify-content: center; }

.card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 36px 28px;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}

.marca { font-size: 26px; font-weight: 800; text-transform: uppercase; letter-spacing: -0.5px; }
.sub { color: rgba(255, 213, 74, 0.75); font-size: 14px; margin-top: 4px; }

.card form { display: flex; flex-direction: column; gap: 16px; margin-top: 22px; }
.card label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; }

input[type="email"], input[type="password"] {
    padding: 14px 16px;
    font-size: 16px;
    color: var(--gold);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line);
    border-radius: 12px;
    outline: none;
}
input:focus { border-color: var(--gold); }

.btn {
    display: inline-block;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gold);
    background: rgba(255, 213, 74, 0.1);
    border: 1px solid rgba(255, 213, 74, 0.3);
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s ease;
}
.btn:hover { background: rgba(255, 213, 74, 0.2); border-color: var(--gold); }
.btn-sec { font-size: 13px; padding: 10px 16px; }

.alerta {
    color: #ff6b6b;
    font-weight: 700;
    font-size: 14px;
    margin-top: 14px;
    text-align: center;
}

/* --- Painel --- */
.topo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: 0 auto 24px;
}

.cards-resumo {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: 0 auto 20px;
}
.resumo {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px 22px;
    min-width: 140px;
}
.resumo .num { display: block; font-size: 30px; font-weight: 800; }
.resumo .rot { font-size: 13px; color: rgba(255, 213, 74, 0.7); }

.tabela-wrap {
    max-width: 1100px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow-x: auto;
}
table { width: 100%; border-collapse: collapse; min-width: 640px; }
th, td { padding: 14px 16px; text-align: left; border-bottom: 1px solid rgba(255, 213, 74, 0.1); font-size: 14px; }
th { text-transform: uppercase; font-size: 12px; letter-spacing: 0.5px; color: rgba(255, 213, 74, 0.85); position: sticky; top: 0; background: #141414; }
td { color: #f3f3f3; }
tbody tr:hover { background: rgba(255, 213, 74, 0.05); }

.vazio { padding: 40px; text-align: center; color: rgba(255, 213, 74, 0.7); }

/* --- Administração --- */
.acoes-topo { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    background: rgba(255, 213, 74, 0.15);
    border: 1px solid rgba(255, 213, 74, 0.4);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

td.acoes { white-space: nowrap; }
.acoes .link, .inline-form { display: inline-block; margin-right: 12px; }
.inline-form { margin: 0; }

.link {
    background: none;
    border: none;
    color: var(--gold);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
    font-family: inherit;
}
.link:hover { color: #fff; }
.link-perigo { color: #ff6b6b; }
.link-perigo:hover { color: #ff9a9a; }

.card-larga { max-width: 460px; }
.form-acoes { display: flex; gap: 12px; margin-top: 8px; }
.form-acoes .btn { flex: 1; }

label.check {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: rgba(255, 213, 74, 0.85);
}
label.check input { width: auto; }
