* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    min-height: 100vh;
}

.login-split {
    display: flex;
    align-items: stretch;
    height: 100vh;
    height: 100dvh;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
}

.login-visual {
    position: relative;
    flex: 1 1 50%;
    height: 100%;
    overflow: hidden;
    background: #0b1520;
}

.login-visual-svg {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.login-visual-texto {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 40px 50px;
    background: linear-gradient(to top, rgba(11,21,32,0.85), transparent);
}

.login-visual-eyebrow {
    color: #2ec4c4;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.login-visual-texto h2 {
    color: #ffffff;
    font-size: 26px;
    font-weight: bold;
    line-height: 1.3;
    max-width: 380px;
}

.login-lado-form {
    flex: 1 1 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
    background: linear-gradient(135deg, #168c8c, #0e5f5f);
}

@media (max-width: 900px) {

    .login-visual {
        display: none;
    }

    .login-lado-form {
        flex: 1 1 100%;
    }
}

.login-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

.login-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.logo {
    text-align: center;
    margin-bottom: 10px;
}

.logo h1 {
    font-size: 28px;
    color: #168c8c;
}

.subtitle {
    text-align: center;
    color: #777;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #d7dfe3;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
}

.form-group input:focus {
    border-color: #168c8c;
}

.btn-login {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    background: #168c8c;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

.btn-login:hover {
    background: #117373;
}

.footer {
    text-align: center;
    margin-top: 25px;
    font-size: 12px;
    color: #999;
}
/* =========================================
   PAINEL
========================================= */

.painel-container {
    width: 100%;
    min-height: 100vh;
    padding: 30px;
}

.painel-header {
    max-width: 1200px;
    margin: 0 auto 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.painel-header h1 {
    color: #168c8c;
    font-size: 28px;
}

.painel-header p {
    margin-top: 5px;
    color: #777;
}

.header-botoes {
    display: flex;
    align-items: center;
    gap: 12px;
}

.painel-container main {
    max-width: 1200px;
    margin: 0 auto;
}

.painel-container main h2 {
    margin-bottom: 20px;
    color: #333;
}

.modulos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.modulo-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.modulo-card:hover {
    transform: translateY(-4px);
}

.modulo-icone {
    font-size: 38px;
    margin-bottom: 15px;
}

.modulo-conteudo h3 {
    margin-bottom: 8px;
    color: #333;
}

.modulo-conteudo p {
    color: #777;
    line-height: 1.5;
}

.btn-sair {
    border: none;
    background: #ffffff;
    border: 1px solid #ddd;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
}

.btn-sair:hover {
    background: #f5f5f5;
}

.btn-sair-vermelho {
    background: #dc2626;
    color: #ffffff;
    border-color: #dc2626;
}

.btn-sair-vermelho:hover {
    background: #b91c1c;
}

/* =========================================
   MODAL (usado em Trocar Senha, etc.)
========================================= */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
    z-index: 1000;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.modal-caixa {
    background: #ffffff;
    width: 100%;
    max-width: 420px;
    margin: 20px 0 40px;
    border-radius: 14px;
    padding: 25px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-cabecalho {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-cabecalho h2 {
    margin: 0;
    font-size: 20px;
    color: #333;
}

.fechar-modal {
    background: transparent;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #777;
    line-height: 1;
}

#formTrocarSenha label {
    display: block;
    margin-bottom: 8px;
    margin-top: 14px;
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

#formTrocarSenha input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d7dfe3;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
}

#formTrocarSenha input:focus {
    border-color: #168c8c;
}

.modal-acoes {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 22px;
}

.btn-cancelar {
    border: none;
    background: #e5e7eb;
    color: #111827;
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
}

.btn-cancelar:hover {
    background: #d6d9dd;
}

.btn-salvar-senha {
    border: none;
    background: #168c8c;
    color: white;
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
}

.btn-salvar-senha:hover {
    background: #117373;
}

/* =========================================
   CLIMA (cabeçalho do painel)
========================================= */

.clima-info {
    margin-top: 8px;
    font-size: 13px;
    color: #555;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.clima-info #climaTemp {
    font-weight: bold;
    color: #168c8c;
}

/* =========================================
   RELÓGIO FIXO (horário de Brasília)
========================================= */

.relogio-fixo {
    position: fixed;
    left: 16px;
    bottom: 16px;
    background: rgba(17, 24, 39, 0.88);
    color: #ffffff;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.5;
    z-index: 500;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    text-align: left;
}

.relogio-fixo #relogioHora {
    font-size: 15px;
    font-weight: bold;
}