/* Telas de acesso (login, troca de senha, offline).
   Regras copiadas do login.css do ForteCare Pós Vendas, sem alteração de medidas.
   Este arquivo é independente (não usa tokens.css/base.css) para não alterar tamanhos. */

:root {
    --navy: #002B5C;
    --navy-mid: #003D7A;
    --navy-dark: #001A3C;
    --blue: #1B6FD5;
    --blue-pale: #EEF4FF;
    --red-pale: #FEF2F2;
    --bg: #EEF3FB;
    --border: #DDE6F5;
    --text: #1C3557;
    --muted: #6B7FA3;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

[hidden] { display: none !important; }

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: linear-gradient(160deg, var(--navy-dark) 0%, var(--navy-mid) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card {
    width: 340px;
    max-width: 100%;
    background: #fff;
    border-radius: 18px;
    padding: 36px 32px 28px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
    text-align: center;
}

.logo-wrap {
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-wrap img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

h1 {
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
}

.sub {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 24px;
}

.field {
    text-align: left;
    margin-bottom: 14px;
}

.field label {
    display: block;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 5px;
}

.field input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 9px;
    border: 1px solid var(--border);
    background: var(--bg);
    font-family: inherit;
    font-size: 13px;
    color: var(--text);
    outline: none;
    transition: border-color .15s, background .15s;
}

.field input:focus {
    border-color: var(--blue);
    background: #fff;
}

/* Linha "Senha ... Esqueci minha senha" (no Pós Vendas é um div com estilo embutido) */
.field-topo {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.field-topo a,
.link-simples {
    font-size: 12px;
    color: #0056b3;
    text-decoration: none;
}

.error {
    background: var(--red-pale);
    color: #991B1B;
    font-size: 12px;
    font-weight: 600;
    padding: 8px 10px;
    border-radius: 8px;
    margin: 4px 0 14px;
    text-align: left;
}

/* Aviso informativo (mesmas medidas do .error) */
.info {
    background: var(--blue-pale);
    color: var(--navy);
    font-size: 12px;
    font-weight: 600;
    padding: 8px 10px;
    border-radius: 8px;
    margin: 4px 0 14px;
    text-align: left;
}

.btn {
    width: 100%;
    padding: 11px;
    border-radius: 9px;
    background: var(--blue);
    color: #fff;
    font-size: 13.5px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: background .15s, transform .1s, box-shadow .15s;
    margin-top: 6px;
}

.btn:hover {
    background: var(--navy-mid);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(27, 111, 213, .35);
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled {
    opacity: .6;
    cursor: not-allowed;
    transform: none;
}

.hint {
    font-size: 11px;
    color: var(--muted);
    margin-top: 18px;
    line-height: 1.5;
}

.hint a {
    text-decoration: none;
    color: var(--blue);
    font-weight: 600;
    transition: color .2s;
}

.hint a:hover {
    color: var(--navy);
}

/* ── Extras só da V2 (não existem no Pós Vendas) ───────────────── */

/* Link com aparência de botão (página offline) */
a.btn {
    display: block;
    text-decoration: none;
}

/* Troca de senha */
.campo-senha { position: relative; }
.campo-senha input { padding-right: 40px; }
.campo-senha .ver-senha {
    position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
    width: 34px; height: 34px; border: 0; background: transparent; color: var(--muted);
    border-radius: 8px; cursor: pointer; font-size: 13px;
}
.campo-senha .ver-senha:hover { color: var(--text); background: var(--blue-pale); }
.regras-senha { text-align: left; font-size: 11.5px; color: var(--muted); margin: -4px 0 14px; padding-left: 16px; }
.regras-senha li { margin-bottom: 2px; }
