/* ============================================================
   ALLPED Login 4.3 – CSS Moderno / Tema Dinâmico / Multi-Tenant
   ============================================================ */

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background: #f4f4f4;
    display: flex;
    justify-content: center;
    padding: 30px 16px;
}

/* ============================================================
   CONTAINER PRINCIPAL
============================================================ */
.login-container {
    width: 100%;
    max-width: 420px;

    background: #ffffff;
    padding: 28px;
    border-radius: 16px;

    box-shadow: 0 3px 16px rgba(0,0,0,0.15);
    text-align: center;
}

/* ============================================================
   LOGO
============================================================ */
.login-logo-area {
    width: 110px;
    height: 110px;
    margin: 0 auto 16px auto;

    border-radius: 16px;
    overflow: hidden;
    border: 2px solid var(--cor-primaria);
    background: #fff;

    display: flex;
    align-items: center;
    justify-content: center;
}

.login-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: none;
}

.login-logo-fallback {
    font-size: 22px;
    font-weight: bold;
    color: var(--cor-primaria);
}

/* ============================================================
   TÍTULO E SUBTÍTULO
============================================================ */
.login-titulo {
    font-size: 22px;
    font-weight: bold;
    color: var(--cor-primaria);
    margin-bottom: 6px;
}

.login-subtitulo {
    font-size: 15px;
    color: #666;
    margin-bottom: 22px;
}

/* ============================================================
   FORMULÁRIO
============================================================ */
.form-box {
    width: 100%;
    margin-top: 10px;
    text-align: left;
}

.form-box label {
    font-size: 14px;
    color: #444;
    margin-bottom: 4px;
    display: block;
}

.form-box input {
    width: 100%;
    padding: 12px;

    border-radius: 10px;
    border: 1px solid #ccc;
    margin-bottom: 14px;

    font-size: 16px;
    outline: none;
    transition: border-color 0.2s;
}

.form-box input:focus {
    border-color: var(--cor-primaria);
}

/* ============================================================
   BOTÕES
============================================================ */
.btn-login,
.btn-visitante {
    width: 100%;
    padding: 14px;

    border: none;
    border-radius: 10px;

    font-size: 17px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.btn-login {
    background: var(--cor-primaria);
    color: #fff;
    font-weight: bold;
}

.btn-login:hover {
    background: #0c8f4d;
}

.btn-login:active {
    transform: scale(0.97);
}

.btn-visitante {
    background: #e7e7e7;
    color: #444;
    margin-top: 10px;
}

.btn-visitante:hover {
    background: #dcdcdc;
}

.btn-visitante:active {
    transform: scale(0.97);
}


/* ============================================================
   ACESSO INTERNO DO COLABORADOR
============================================================ */
.acesso-colaborador-separador {
    display: flex;
    align-items: center;
    gap: 10px;

    margin: 22px 0 12px 0;

    color: #777;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.acesso-colaborador-separador::before,
.acesso-colaborador-separador::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #dddddd;
}

.acesso-colaborador-separador span {
    white-space: nowrap;
}

.btn-colaborador {
    width: 100%;
    padding: 13px;

    border: 1px solid var(--cor-primaria);
    border-radius: 10px;

    background: #ffffff;
    color: var(--cor-primaria);

    font-size: 16px;
    font-weight: bold;

    cursor: pointer;

    transition:
        background 0.2s,
        color 0.2s,
        transform 0.1s;
}

.btn-colaborador:hover {
    background: var(--cor-primaria);
    color: #ffffff;
}

.btn-colaborador:active {
    transform: scale(0.97);
}


/* ============================================================
   STATUS DAS MENSAGENS
============================================================ */
.status-msg {
    font-size: 14px;
    margin-top: 14px;
    min-height: 18px;
    color: #b00020;
}

/* ============================================================
   RODAPÉ
============================================================ */
.login-footer {
    margin-top: 26px;
    font-size: 13px;
    color: #777;
}

/* ============================================================
   LOADING DO TEMA
============================================================ */
.tema-loading {
    font-size: 14px;
    margin-bottom: 18px;
    color: #666;
}

/* ============================================================
   RESPONSIVIDADE
============================================================ */
@media (min-width: 480px) {
    .login-container {
        padding: 34px;
        border-radius: 18px;
    }

    .login-logo-area {
        width: 120px;
        height: 120px;
    }
}
