/* =====================================
   RESET E FONTES (Padrão NexaBarber)
===================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* =====================================
   VARIÁVEIS OFICIAIS DO SISTEMA
===================================== */
:root {
    /* Cores de Fundo (Baseadas no Header/Sidebar do sistema) */
    --bg-body: #071222;
    --card-bg: #0f1b2d;
    
    /* Cores de Interação */
    --input-bg: #162842;
    --input-border: #23395d;
    --input-border-focus: #2563eb;
    
    /* Marca */
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    
    /* Textos */
    --text-primary: #ffffff;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    
    /* Status */
    --danger: #ef4444;
    --danger-bg: rgba(239, 68, 68, 0.1);

    /* Tipografia e Medidas */
    --font-body: 'Inter', sans-serif;
    --radius-lg: 16px;
    --radius-md: 8px;
    --shadow-card: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    
    --body-padding: clamp(16px, 4vw, 24px);
}

/* =====================================
   BASE (Fundo escuro e limpo)
===================================== */
html {
    min-height: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    /* Fundo escuro sutil, igual ao menu lateral do sistema */
    background: radial-gradient(circle at top center, #0e1f38 0%, #050b14 100%);
    color: var(--text-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    min-height: 100dvh;
    padding: var(--body-padding);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* =====================================
   CARD DE LOGIN
===================================== */
.container {
    background: var(--card-bg);
    width: 100%;
    max-width: 420px;
    padding: 48px 40px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-card);
    position: relative;
    z-index: 1;
    margin: 0 auto;
    animation: fadeUp 0.5s ease-out forwards;
}

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

/* =====================================
   TÍTULOS E TEXTOS
===================================== */
h1 {
    font-family: var(--font-body);
    text-align: center;
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}

p {
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 32px;
}

/* =====================================
   FORMULÁRIO (Labels e Inputs)
===================================== */
label {
    display: block;
    margin-bottom: 8px;
    margin-top: 20px;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--input-border);
    border-radius: var(--radius-md);
    background-color: var(--input-bg);
    color: var(--text-primary);
    font-size: 15px;
    font-family: var(--font-body);
    font-weight: 500;
    transition: all 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

input::placeholder {
    color: #64748b;
    font-weight: 400;
}

input:hover {
    border-color: #3b537a;
}

input:focus {
    outline: none;
    border-color: var(--input-border-focus);
    background-color: #1a2f4c;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

/* =====================================
   BOTÃO ENTRAR (Padrão Sistema)
===================================== */
button {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: var(--radius-md);
    background: var(--accent);
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-body);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Seta do botão */
button::after {
    content: "→";
    font-size: 16px;
    transition: transform 0.2s ease;
}

button:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

button:hover::after {
    transform: translateX(4px);
}

button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

/* =====================================
   MENSAGEM DE ERRO (LOGIN)
===================================== */
#mensagemLogin {
    margin-top: 16px;
    text-align: center;
    font-size: 13px;
    color: var(--danger);
    font-weight: 600;
    transition: all 0.3s ease;
}

#mensagemLogin:not(:empty) {
    padding: 12px;
    background: var(--danger-bg);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--radius-md);
    animation: shake 0.4s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    50% { transform: translateX(4px); }
    75% { transform: translateX(-4px); }
}

/* =====================================
   RESPONSIVO
===================================== */
@media (max-width: 480px) {
    .container {
        padding: 40px 24px;
        border-radius: 14px;
    }
    
    h1 { font-size: 24px; }
}

@media (max-height: 600px) {
    body {
        align-items: flex-start;
        padding-top: 24px;
    }
}