/* =========================================================
    TEMA AUTOMÁTICO (segue o sistema operacional)
    - Claro por padrão
    - Escuro quando o OS estiver em dark mode
========================================================= */

:root {
    --bg: #f2f4f7;
    --panel: #ffffff;
    --text: #0a2540;
    --muted: #52616b;
    --border: #cfd8dc;
    --input-bg: #ffffff;
    --button-bg: #0a2540;
    --button-text: #ffffff;
    --link: #0a2540;
    --shadow: rgba(0, 0, 0, 0.18);
    --error: #b00020;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #061525;
        --panel: #0f2436;
        --text: #e6edf3;
        --muted: #a9b7c1;
        --border: #1f3b57;
        --input-bg: #0b1f30;
        --button-bg: #1e6fb8;
        --button-text: #ffffff;
        --link: #cfe6ff;
        --shadow: rgba(0, 0, 0, 0.45);
        --error: #ff6b6b;
    }
}

/* Força inputs a respeitarem o tema nativo também (especialmente mobile) */
html {
    color-scheme: light dark;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
}

html, body {
    overflow-y: hidden;
}

/* =========================================================
    LAYOUT FULLSCREEN
========================================================= */

.login-wrap {
    /* min-height: 100vh; */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px 14px;
    scrollbar-width:    ;
}

.login-panel {
    width: 100%;
    max-width: 440px; /* Mantém sua proposta de painel compacto, mas em tela cheia */
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px 18px;
    box-shadow: 0 18px 40px var(--shadow);
    text-align: center;
}

h1 {
    font-size: 1.3rem;
    margin: 6px 0 12px 0;
}

.logo {
    width: 150px;
    max-width: 70%;
    height: auto;
    margin: 4px auto 8px auto;
    display: block;
}

.font-sisgin {
    text-align: center;
    font-family: Arial, sans-serif; 
    color: #1f3b57;
}

.title-sisgin {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.nome-sisgin {
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 1px;
    line-height: 1.4;
}

form {
    margin-top: 10px;
    text-align: left;
}

label {
    display: block;
    margin-top: 10px;
    font-size: 0.9rem;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 10px 10px;
    font-size: 0.95rem;
    margin-top: 6px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--input-bg);
    color: var(--text);
}

input[type="text"]::placeholder,
input[type="password"]::placeholder {
    color: var(--muted);
}

input[type="text"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: var(--button-bg);
}

button {
    margin-top: 14px;
    padding: 10px 12px;
    font-size: 0.95rem;
    width: 100%;
    border: none;
    border-radius: 8px;
    background: var(--button-bg);
    color: var(--button-text);
    cursor: pointer;
}

button:hover {
    opacity: 0.92;
}

.erro {
    color: var(--error);
    margin-top: 12px;
    font-size: 0.9rem;
    text-align: center;
}

.info {
    font-size: 0.82rem;
    margin-top: 10px;
    color: var(--muted);
    text-align: center;
    line-height: 1.35;
}

.atualizacoes {
    margin-top: 14px;
    font-size: 0.88rem;
    text-align: center;
}

.atualizacoes a {
    color: var(--link);
    text-decoration: none;
}

.atualizacoes a:hover {
    text-decoration: underline;
}