/* ===========================================
   LOGIN GDE - PADRÃO FORTH (Split Layout)
=========================================== */

* {
    box-sizing: border-box;
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

body {
    margin: 0;
    padding: 20px; /* Pequeno respiro */
    background: #eef2ff; /* Fundo suave */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* CONTAINER PRINCIPAL */
.login-container {
    display: flex;
    width: 100%;
    max-width: 950px;
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    overflow: hidden;
    margin-bottom: 20px;
}

/* COLUNA ESQUERDA (LOGO) */
.login-left {
    flex: 1;
    background: #eef2ff; /* Pode mudar para #01264f se quiser fundo azul */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    position: relative;
}

.login-left img {
    width: 100%;
    max-width: 280px;
    height: auto;
    object-fit: contain;
}

/* COLUNA DIREITA (FORM) */
.login-right {
    flex: 1.1;
    padding: 50px 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* TÍTULOS */
.login-right h1 {
    font-size: 26px;
    color: #1c3a90; /* Azul Forth */
    font-weight: 700;
    margin: 0 0 5px 0;
}

.login-right h4 {
    font-size: 16px;
    color: #666;
    font-weight: 400;
    margin: 0 0 30px 0;
}

/* FORMULÁRIO */
.form-group {
    margin-bottom: 15px;
}

.form-control {
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    border: 1px solid #cfd7e6;
    background: #f7f9ff;
    font-size: 15px;
    transition: 0.25s;
    outline: none;
    color: #333;
}

.form-control:focus {
    border-color: #1c3a90;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(28, 58, 144, 0.15);
}

/* CHECKBOX */
.checkbox-container {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 14px;
    color: #555;
}

.checkbox-container input {
    margin-right: 8px;
    transform: scale(1.2);
    cursor: pointer;
}

/* MENSAGENS DE ERRO/SUCESSO (AJAX) */
#view {
    margin-bottom: 15px;
    min-height: 20px;
}

.alert-custom {
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* BOTÃO */
.btn-primary {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    background: #1c3a90;
    border: none;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    background: #152c75;
}

/* RODAPÉ */
.login-footer {
    text-align: center;
    font-size: 13px;
    color: #1c3a90;
    opacity: 0.7;
}

/* RESPONSIVO */
@media (max-width: 850px) {
    .login-container {
        flex-direction: column;
        max-width: 450px;
    }

    .login-left {
        padding: 30px;
        background: #fff;
        border-bottom: 1px solid #f0f0f0;
    }

    .login-left img {
        max-width: 180px;
    }

    .login-right {
        padding: 30px 25px;
    }
}