/* Reset e Tipografia */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, sans-serif;
}

body {
    min-height: 100vh;
    overflow: hidden; /* Evita rolagem na tela inteira */
    background-color: #ffffff;
}

/* Estrutura Principal da Tela Dividida */
.split-layout {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* ---- PAINEL ESQUERDO (A Imagem) ---- */
.left-pane {
    flex: 1; /* Ocupa todo o espaço restante (aprox 60-70%) */
    background-image: url('pagina_login.PNG'); /* Usa a imagem solicitada */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.left-footer {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.8);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    color: #4a4a4a;
    font-weight: 500;
}

/* ---- PAINEL DIREITO (O Formulário) ---- */
.right-pane {
    width: 100%;
    max-width: 450px; /* Largura fixa para a coluna branca */
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 50px;
    box-shadow: -5px 0 25px rgba(0,0,0,0.05); /* Sombra suave para separar da imagem */
    z-index: 10;
}

.login-container {
    width: 100%;
    animation: fadeIn 0.8s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Logo */
.logo {
    text-align: center;
    margin-bottom: 50px;
}

.logo img {
    max-width: 200px;
    height: auto;
}

/* Títulos */
.portal-title {
    font-size: 1.8rem;
    color: #4a4a68;
    margin-bottom: 8px;
    font-weight: 600;
    text-align: left;
}

.login-subtitle {
    font-size: 0.9rem;
    color: #9ca3af;
    margin-bottom: 30px;
    line-height: 1.5;
    text-align: left;
}

/* Inputs e Labels */
.input-group {
    margin-bottom: 20px;
}

/* Flexbox para colocar o label de senha e o link na mesma linha */
.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.input-group label, .label-row label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #4b5563;
}

.input-group input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #ffffff;
    font-size: 0.95rem;
    color: #1f2937;
    transition: all 0.2s ease;
}

.input-group input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Links */
.forgot-password {
    font-size: 0.8rem;
    color: #6366f1;
    text-decoration: none;
    font-weight: 500;
}

.forgot-password:hover {
    text-decoration: underline;
}

/* Botão Entrar */
.enter-button {
    display: inline-block; /* Faz o botão não ocupar 100% da largura */
    padding: 10px 35px;
    background-color: #2b3a67; /* Cor azul escura idêntica à referência */
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
    margin-top: 10px;
}

.enter-button:hover {
    background-color: #1a2340;
}

/* Rodapé do Formulário */
.version-text {
    text-align: center;
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 50px;
}

/* Responsividade (Para dispositivos móveis, o formulário vai para baixo ou esconde a imagem) */
@media (max-width: 768px) {
    .split-layout {
        flex-direction: column;
    }
    .left-pane {
        flex: 0 0 200px; /* Imagem fica menor no topo em celulares */
    }
    .right-pane {
        max-width: 100%;
        padding: 30px;
        flex: 1;
    }
}