/* =========================================
   1. Configurações Globais e Reset
   ========================================= */
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center; /* Centraliza horizontalmente */
    align-items: center;     /* Centraliza verticalmente */
    
    /* Fundo */
    background-image: url('../img/fundo.jpg'); /* Verifique se o caminho está correto */
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Container principal para reforçar a centralização */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 20px; /* Margem de segurança para telas pequenas */
    box-sizing: border-box;
}

/* =========================================
   2. O Painel (Glassmorphism)
   ========================================= */
.panel {
    display: flex;
    width: 900px;
    height: 550px;
    
    /* Efeito de Vidro */
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    
    overflow: hidden; /
    position: relative;
}


.side {
    flex: 1; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
    box-sizing: border-box;
}

/* A Linha Divisória Central */
.divider {
    width: 1px;
    background: rgba(255, 255, 255, 0.3);
    height: 80%;
    align-self: center;
}

/* =========================================
   4. Lado Esquerdo (Formulário)
   ========================================= */
.login-side {
    padding: 40px; /* Espaçamento interno apenas no formulário */
}

.login-box {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.Logo {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.logo-img {
    max-width: 100%;
  /*  height: auto;*/
    height: 130px; /* Ajuste conforme necessário para não estourar */
}

.input-group {
    margin-bottom: 20px;
    margin-top: -20px;
    width: 100%;
}

.input-group label {
    display: block;
    margin-bottom: 10px;
    margin-top: 2px;
    font-size: 0.9rem; /* Tamanho ajustado para elegância */
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.9px;
    color: rgba(255, 255, 255, 0.9);
}

.input-field {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    color: white;
    outline: none;
    transition: 0.3s;
    font-size: 1rem;
    box-sizing: border-box;
}

.input-field:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: #fff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

/* Botão Principal */
.btn-primary {
    width: 60%; 
    padding: 10px;
    margin: 15px auto 0 auto; /* auto nas laterais centraliza o bloco */
    display: block;           /* Necessário para margin: auto funcionar */
    
    border: none;
    border-radius: 50px; /* Botão arredondado fica mais moderno */
    background: #fff;
    color: #333;
    font-weight: bold;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #f0f0f0;
    transform: translateY(-3px);
    box-shadow: 10px 5px 10px rgba(0,0,0,0.3);
}

/* =========================================
   5. Lado Direito (Carrossel)
   ========================================= */
.carousel-side {
    padding: 0; /* Remove padding para imagem tocar as bordas */
    position: relative;
    background: rgba(0, 0, 0, 0.2); /* Fundo escuro sutil caso imagem falhe */
    
    /* Flex settings corrigidos */
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* align-items REMOVIDO para permitir que a imagem estique (stretch) */
}

.carousel-wrapper {
    width: 100%;
    height: 100%; /* Ocupa toda a altura do painel */
    display: flex;
}

#img-dinamica {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Corta a imagem para preencher sem distorcer */
    display: block;    /* Remove o espaço em branco inferior (inline gap) */
    transition: opacity 0.3s ease-in-out;
}

/* =========================================
   6. Controles do Carrossel (Setas)
   ========================================= */
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15); /* Vidro sutil nas setas */
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    
    color: white;
    font-size: 1.2rem;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    outline: none;
}

.arrow:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
}

.left { 
    left: 0; 
    border-radius: 0 10px 10px 0; 
}

.right { 
    right: 0; 
    border-radius: 10px 0 0 10px; 
}

/* =========================================
   7. Responsividade (Mobile)
   ========================================= */
@media (max-width: 900px) {
    .panel {
        flex-direction: column;
        width: 100%;
        height: auto; /* Altura automática no mobile */
        max-width: 450px;
    }

    .divider {
        display: none; /* Esconde a linha divisória no mobile */
    }

    .carousel-side {
        height: 250px; /* Altura fixa para o carrossel no mobile */
        order: -1; /* Joga o carrossel para o topo (opcional) */
    }
    
    .logo-img {
        max-height: 80px;
    }
}