/* Identidade visual SL Transportes: verde #00a859 sobre fundo claro. */
:root {
    --sl-verde: #00a859;
    --sl-verde-escuro: #058250;
    --sl-texto: #212121;
    --sl-borda: #d0d5d2;
    --sl-fundo: #f4f4f4;
}

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

html, body {
    font-family: 'Open Sans', 'Segoe UI', Arial, sans-serif;
    font-size: 15px;
    color: var(--sl-texto);
    background: var(--sl-fundo);
}

.pagina {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cartao {
    width: 100%;
    max-width: 480px;
    background: #fff;
    border-top: 4px solid var(--sl-verde);
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
    padding: 24px;
}

.logo {
    display: block;
    height: 52px;
    width: auto;
    margin: 0 auto 18px;
}

h1 {
    font-size: 19px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
}

h1:focus {
    outline: none;
}

.campo {
    margin-bottom: 14px;
    flex: 1;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
}

input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--sl-borda);
    border-radius: 5px;
    font-size: 15px;
    font-family: inherit;
    color: var(--sl-texto);
    background: #fff;
}

input:focus {
    outline: none;
    border-color: var(--sl-verde);
    box-shadow: 0 0 0 2px rgba(0, 168, 89, .18);
}

/* Duas colunas no desktop, empilha no celular. */
.linha {
    display: flex;
    gap: 12px;
}

@media (max-width: 480px) {
    .linha {
        display: block;
    }
}

button {
    width: 100%;
    padding: 12px;
    margin-top: 6px;
    background: var(--sl-verde);
    color: #fff;
    border: 1px solid var(--sl-verde);
    border-radius: 5px;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
}

button:hover:not(:disabled) {
    background: var(--sl-verde-escuro);
    border-color: var(--sl-verde-escuro);
}

button:disabled {
    background: #aaa;
    border-color: #aaa;
    cursor: not-allowed;
}

.resultado {
    margin-top: 16px;
    padding: 12px;
    border-radius: 5px;
    font-size: 15px;
}

.resultado.sucesso {
    background: #e8f5e9;
    color: var(--sl-verde-escuro);
}

.resultado.erro {
    background: #fdecea;
    color: #c62828;
}

.invalid {
    border-color: #e50000;
}

.validation-message {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    color: #e50000;
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
