* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;

    font-family: Arial, Helvetica, sans-serif;

    background: #f3f4f6;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 550px;

    background: #ffffff;

    padding: 40px;

    border-radius: 18px;

    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.10);
}

.logo {
    width: 70px;
    height: 70px;

    margin: 0 auto 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #f1f5f9;

    border-radius: 50%;

    font-size: 34px;
}

h1 {
    text-align: center;

    font-size: 28px;

    margin-bottom: 10px;

    color: #111827;
}

.descricao {
    text-align: center;

    color: #6b7280;

    line-height: 1.5;

    margin-bottom: 30px;
}

label {
    display: block;

    font-weight: 600;

    color: #374151;

    margin-bottom: 8px;

    margin-top: 18px;
}

input {
    width: 100%;

    padding: 14px 15px;

    border: 1px solid #d1d5db;

    border-radius: 10px;

    font-size: 15px;

    outline: none;

    transition: 0.2s;
}

input:focus {
    border-color: #2563eb;

    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.10);
}

button {
    width: 100%;

    margin-top: 28px;

    padding: 15px;

    border: none;

    border-radius: 10px;

    background: #2563eb;

    color: white;

    font-size: 16px;

    font-weight: 700;

    cursor: pointer;

    transition: 0.2s;
}

button:hover {
    background: #1d4ed8;
}

@media (max-width: 600px) {

    .container {
        padding: 28px 20px;
    }

    h1 {
        font-size: 24px;
    }

}
.auth-page{
 min-height:100vh;display:flex;align-items:center;justify-content:center;
 background:linear-gradient(135deg,#eef4ff,#f8fafc,#e0e7ff);
 padding:20px;font-family:Arial,sans-serif;
}
.auth-card{
 width:100%;max-width:430px;background:rgba(255,255,255,.85);
 backdrop-filter:blur(12px);border:1px solid #e2e8f0;
 border-radius:24px;padding:40px;box-shadow:0 20px 50px rgba(15,23,42,.12);
}
.auth-card h1{text-align:center}
.auth-input{width:100%;padding:14px;border-radius:12px;border:1px solid #cbd5e1;margin-bottom:15px;font-size:15px}
.auth-btn{width:100%;padding:14px;border:0;border-radius:14px;background:linear-gradient(135deg,#2563eb,#7c3aed);color:#fff;font-weight:700;font-size:16px;cursor:pointer}
.auth-link{text-align:center;margin-top:20px}
.tema-escuro .auth-page{background:#0f172a}
.tema-escuro .auth-card{background:#1e293b;color:#fff}
.tema-escuro .auth-input{background:#0f172a;color:#fff;border-color:#475569}


/* ===== TEMA GLOBAL DAS PAGINAS DE LOGIN E CADASTRO ===== */
.auth-page{
    transition:.3s ease;
}
.tema-escuro .auth-page{
    background:radial-gradient(circle at top,#1e3a8a,#0f172a 45%,#020617);
}
.tema-escuro .auth-card{
    background:rgba(15,23,42,.82);
    border-color:#334155;
    box-shadow:0 25px 60px rgba(0,0,0,.45);
}
.tema-escuro .auth-card h1{
    color:#fff;
}
.tema-escuro .descricao{
    color:#94a3b8;
}
.tema-escuro .auth-input{
    background:#111827;
    color:#fff;
    border-color:#475569;
}
.tema-escuro .auth-input::placeholder{
    color:#94a3b8;
}
.tema-escuro .auth-link{
    color:#e2e8f0;
}
.tema-escuro .auth-link a{
    color:#60a5fa;
}
.tema-escuro .logo{
    background:#1e293b;
}

/* Modo claro */
.auth-page:not(.tema-escuro) .auth-card{
    color:#111827;
}



/* =========================================================
   CORREÇÃO DEFINITIVA — PÁGINAS DE LOGIN E CADASTRO
   O tema deve ocupar 100% da janela, sem as faixas laterais
   claras causadas pelo body em display:flex + padding.
   ========================================================= */
body.auth-body {
    margin: 0;
    padding: 0;
    min-width: 100%;
    min-height: 100vh;
    display: block;
    background: #f8fafc;
}

body.auth-body .auth-page {
    width: 100%;
    min-width: 100%;
    min-height: 100vh;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eef4ff 0%, #f8fafc 50%, #e0e7ff 100%);
}

/* Tema escuro: cobre a página inteira */
body.auth-body.tema-escuro {
    background: #020617;
}

body.auth-body.tema-escuro .auth-page {
    background: radial-gradient(circle at top, #1e3a8a 0%, #0f172a 45%, #020617 100%);
}

body.auth-body.tema-escuro .auth-card {
    background: rgba(15, 23, 42, 0.92);
    color: #f8fafc;
    border-color: #475569;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55);
}

body.auth-body.tema-escuro .auth-card h1 {
    color: #f8fafc;
}

body.auth-body.tema-escuro .descricao {
    color: #94a3b8;
}

body.auth-body.tema-escuro .auth-input {
    background: #0b1220;
    color: #f8fafc;
    border-color: #475569;
}

body.auth-body.tema-escuro .auth-input::placeholder {
    color: #94a3b8;
}

body.auth-body.tema-escuro .auth-input:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.15);
}

body.auth-body.tema-escuro .auth-link {
    color: #e2e8f0;
}

body.auth-body.tema-escuro .auth-link a {
    color: #60a5fa;
}

body.auth-body.tema-escuro .logo {
    background: #e2e8f0;
}

body.auth-body.tema-escuro .auth-msg {
    color: #fca5a5;
}

/* Garante que o fundo continue cobrindo a tela em telas pequenas */
@media (max-width: 600px) {
    body.auth-body .auth-page {
        padding: 16px;
    }

    body.auth-body .auth-card {
        padding: 30px 22px;
    }
}


/* =========================================================
   SMARTLINK QR V14 — LOGIN 100% ESCURO
   Corrige as faixas laterais claras e garante que o tema
   ocupe toda a viewport.
   ========================================================= */
html {
    width: 100%;
    min-height: 100%;
    background: #020617;
}

html:has(body.auth-body) {
    background: #020617;
}

body.auth-body {
    width: 100vw !important;
    min-width: 100vw !important;
    min-height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    background: #020617 !important;
    overflow-x: hidden;
}

body.auth-body .auth-page {
    width: 100vw !important;
    min-width: 100vw !important;
    min-height: 100vh !important;
    margin: 0 !important;
    padding: 32px 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: radial-gradient(circle at 50% 0%, #1e3a8a 0%, #0f172a 42%, #020617 100%) !important;
}

body.auth-body .auth-card {
    width: 100%;
    max-width: 430px;
    border: 1px solid #475569;
    background: rgba(15, 23, 42, 0.94);
    color: #f8fafc;
    box-shadow: 0 25px 70px rgba(0,0,0,.50);
}

body.auth-body .auth-card h1 {
    color: #f8fafc;
}

body.auth-body .auth-card .descricao {
    color: #94a3b8;
}

body.auth-body .auth-input {
    background: #0b1220;
    color: #f8fafc;
    border-color: #475569;
}

body.auth-body .auth-input:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96,165,250,.15);
}

body.auth-body .auth-input::placeholder {
    color: #94a3b8;
}

body.auth-body .auth-link {
    color: #e2e8f0;
}

body.auth-body .auth-link a {
    color: #8b5cf6;
    text-decoration: none;
}

body.auth-body .auth-link a:hover {
    color: #a78bfa;
    text-decoration: underline;
}

body.auth-body .logo {
    background: #e2e8f0;
}

@media (max-width: 600px) {
    body.auth-body .auth-page {
        padding: 20px 14px !important;
    }

    body.auth-body .auth-card {
        padding: 30px 22px;
    }
}
