:root {
    --azul-primario: #006aaa;
    --azul-escuro: #004b7a;
    --azul-claro: #eaf4fa;
    --verde: #009e97;
    --texto: #1e293b;
    --texto-secundario: #64748b;
    --borda: #dbe3ea;
    --erro: #b91c1c;
    --erro-bg: #fef2f2;
}

* {
    box-sizing: border-box;
}

a {
    color: var(--azul-primario);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--texto);
    background: linear-gradient(160deg, var(--azul-primario) 0%, var(--azul-escuro) 45%, #0d2b40 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.auth-marca {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.auth-marca img {
    height: 50px;
    width: auto;
}

/* Duas marcas lado a lado (prefeitura à esquerda, GeraOS à direita) —
   usada no formulário público de pedido de serviço, onde o pedido é
   da prefeitura mas o sistema é do GeraOS. */
.auth-marca-dupla {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.auth-marca-dupla img {
    height: 44px;
    width: auto;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 45px rgba(9, 30, 46, 0.28);
    padding: 2.25rem 2.25rem 2rem;
}

.auth-card h1 {
    margin: 0 0 0.35rem;
    font-size: 1.4rem;
    color: var(--texto);
}

.auth-card .subtitulo {
    margin: 0 0 1.5rem;
    color: var(--texto-secundario);
    font-size: 0.92rem;
}

.auth-card .status {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    padding: 0.7rem 0.9rem;
    border-radius: 8px;
    font-size: 0.88rem;
    margin-bottom: 1.25rem;
}

.auth-linha {
    display: flex;
    gap: 0.75rem;
}

.auth-linha .campo {
    flex: 1;
}

.campo {
    margin-bottom: 1.1rem;
}

.campo label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--texto);
    margin-bottom: 0.35rem;
}

.campo input,
.campo select,
.campo textarea {
    width: 100%;
    padding: 0.65rem 0.8rem;
    border: 1px solid var(--borda);
    border-radius: 8px;
    font-size: 1rem;
    color: var(--texto);
    background: #fbfcfd;
    box-sizing: border-box;
    font-family: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.campo input:focus,
.campo select:focus,
.campo textarea:focus {
    outline: none;
    border-color: var(--azul-primario);
    box-shadow: 0 0 0 3px rgba(26, 82, 118, 0.15);
    background: #fff;
}

.campo.uf {
    flex: 0 0 5.5rem;
}

.campo.uf input {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-align: center;
}

.campo .erro {
    color: var(--erro);
    font-size: 0.8rem;
    margin-top: 0.35rem;
}

.auth-divisor {
    border: none;
    border-top: 1px solid var(--borda);
    margin: 1.5rem 0 1.3rem;
}

.auth-divisor-label {
    text-align: center;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--texto-secundario);
    margin: -1.9rem 0 1.3rem;
}

.auth-divisor-label span {
    background: #fff;
    padding: 0 0.6rem;
}

.campo-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.3rem;
    font-size: 0.88rem;
    color: var(--texto-secundario);
}

.campo-checkbox input {
    width: auto;
    margin: 0;
}

.botao-primario {
    display: inline-block;
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 8px;
    background: var(--azul-primario);
    color: #fff;
    font-size: 0.98rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.05s ease;
}

.botao-primario:hover {
    background: var(--azul-escuro);
    text-decoration: none;
}

.botao-primario:active {
    transform: translateY(1px);
}

/* Botão de ação secundária (ex.: "Fechar" ao lado de "Novo pedido") —
   mesma forma do primário, mas neutro, pra não competir com a ação
   principal da tela. */
.botao-secundario {
    display: inline-block;
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--borda);
    border-radius: 8px;
    background: #fff;
    color: var(--texto);
    font-size: 0.98rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.05s ease;
}

.botao-secundario:hover {
    background: var(--azul-claro);
    text-decoration: none;
}

.botao-secundario:active {
    transform: translateY(1px);
}

/* Linha de duas ações lado a lado (ex.: "Novo pedido" + "Fechar" na
   confirmação de pedido). */
.auth-acoes {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.4rem;
}

.auth-acoes > * {
    flex: 1;
}

.auth-rodape {
    text-align: center;
    margin-top: 1.4rem;
    font-size: 0.88rem;
    color: var(--texto-secundario);
}

.auth-rodape a {
    color: var(--azul-primario);
    font-weight: 600;
    text-decoration: none;
}

.auth-rodape a:hover {
    text-decoration: underline;
}

/* Sobre o gradiente escuro do body (fora do .auth-card branco) — cor clara
   em vez de var(--texto-secundario), que foi pensada pra fundo branco. */
.rodape-legal {
    text-align: center;
    margin: 1.4rem 0 0;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.7);
}

.rodape-legal a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: underline;
}

.rodape-legal a:hover {
    color: #fff;
}

/* Variante larga do .auth-card pras 3 páginas legais (Privacidade, Termos,
   LGPD) — texto corrido, não cabe bem na largura estreita pensada pra
   formulário/card de status. */
.documento-card {
    max-width: 720px;
    text-align: left;
}

.documento-card .atualizado {
    font-size: 0.8rem;
    color: var(--texto-secundario);
    margin: 0 0 1.5rem;
}

.documento-card h2 {
    font-size: 1.05rem;
    color: var(--azul-primario);
    margin: 1.75rem 0 0.6rem;
}

.documento-card h2:first-of-type {
    margin-top: 0;
}

.documento-card p,
.documento-card li {
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--texto);
}

.documento-card ul {
    margin: 0.4rem 0 1rem;
    padding-left: 1.3rem;
}

.documento-card .voltar {
    display: inline-block;
    margin-top: 2rem;
    font-size: 0.88rem;
}

@media (max-width: 480px) {
    body {
        padding: 1.25rem 0.85rem;
        align-items: flex-start;
    }

    .auth-marca img {
        height: 42px;
    }

    .auth-marca-dupla img {
        height: 36px;
    }

    .auth-card {
        padding: 1.5rem 1.25rem 1.5rem;
        border-radius: 12px;
    }

    .auth-card h1 {
        font-size: 1.2rem;
    }

    .auth-linha {
        flex-direction: column;
        gap: 0;
    }

    .campo.uf {
        flex-basis: auto;
    }
}
