:root {
    /* Paleta Ghibli - Variação Azul */
    --ghibli-blue: #4a7a8c;        /* Azul petróleo suave / Muted Teal */
    --ghibli-blue-hover: #365c6b;  /* Tom mais escuro para hover */
    
    --ghibli-cream: #fbf8f1;       /* Mantido: Cor de papel antigo */
    --ghibli-text: #4a4a4a;        /* Mantido: Cinza chumbo */
    --ghibli-accent: #d48c70;      /* Mantido: Terracota para detalhes */
    --white: #ffffff;
    
    /* Sombra agora usa o tom azulado */
    --shadow-soft: 0 8px 30px rgba(74, 122, 140, 0.2);
}

/* --- Fontes offline (Mantidas) --- */
@font-face {
    font-display: swap;
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 400;
    src: url('../googlefonts/playfair-display-v40-latin-regular.woff2') format('woff2');
}
@font-face {
    font-display: swap;
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 500;
    src: url('../googlefonts/playfair-display-v40-latin-500.woff2') format('woff2');
}

body {
    overflow-x: hidden;
    font-family: 'Segoe UI', sans-serif;
    color: var(--ghibli-text);
    background-color: var(--ghibli-cream);
}

/* Imagem Lateral */
.img-lateral {
    width: 100%;
    height: 100vh;
    object-fit: cover;
    object-position: center;
    /* Filtro para harmonizar a imagem com o azul */
    filter: contrast(1.05) saturate(0.9) brightness(1.05); 
    border-left: 5px solid var(--white);
}

/* Seção de Login */
.secao-login {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--ghibli-cream);
    padding: 2rem;
    position: relative;
}

/* Container do Formulário */
.secao-login .formulario {
    max-width: 400px;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.90); /* Levemente mais opaco */
    padding: 3rem 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(5px);
}

/* Tipografia */
.secao-login h4 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--ghibli-blue); /* Título em azul */
    font-weight: 600;
    margin-bottom: 2rem;
    letter-spacing: -0.5px;
}

.secao-login label.form-label {
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    color: var(--ghibli-text);
    font-size: 1.1rem;
    margin-left: 10px;
    margin-bottom: 5px;
}

/* Inputs (Caixas de Texto) */
.secao-login .form-control {
    background-color: #f0f4f5; /* Azulado muito claro/cinza */
    border: 2px solid transparent;
    border-radius: 50px;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    color: var(--ghibli-text);
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(74, 122, 140, 0.05);
}

.secao-login .form-control:focus {
    background-color: var(--white);
    border-color: var(--ghibli-blue); /* Borda azul ao focar */
    box-shadow: 0 0 0 4px rgba(74, 122, 140, 0.15);
    outline: none;
}

/* Botão Entrar */
.secao-login .btn-primary {
    background-color: var(--ghibli-blue);
    border: none;
    border-radius: 50px;
    padding: 12px;
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    font-size: 1.2rem;
    letter-spacing: 1px;
    margin-top: 1rem;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(74, 122, 140, 0.3);
}

.secao-login .btn-primary:hover {
    background-color: var(--ghibli-blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 122, 140, 0.4);
}

.secao-login .btn-primary:active {
    transform: translateY(0);
}

.secao-login .btn-primary:disabled {
    background-color: #9cb5be;
    transform: none;
}

/* Notificações de Erro */
.not {
    color: var(--ghibli-accent); /* Mantido terracota para destaque de erro */
    font-weight: 500;
    font-size: 0.9rem;
    margin-top: 10px;
    display: block;
    font-family: 'Segoe UI', sans-serif;
}

/* Texto de versão no rodapé */
.text-muted {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 0.85rem;
    opacity: 0.7;
    margin-top: 1rem;
}

/* Responsividade */
@media (max-width: 768px) {
    .secao-login {
        padding: 1rem;
    }
    .secao-login .formulario {
        padding: 2rem 1.5rem;
        border-radius: 15px;
    }
}
