/* assets/css/login.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Inter', sans-serif;
    /* O overflow hidden é crucial para garantir que nada "vaze" durante as transições */
    overflow: hidden;
}

/* --- Animações do Formulário (Lado Esquerdo) --- */
.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; /* Forwards mantém o estado final */
    opacity: 0; /* Começa invisível antes da animação */
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Input Customizado com foco suave */
.custom-input:focus {
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
    border-color: #2563eb;
}

/* Botão de Loading */
.btn-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn-loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-top: -10px;
    margin-left: -10px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }


/* --- CARROSSEL PROFISSIONAL (Lado Direito) --- */

/* Container principal do lado direito */
.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: #1a1a1a; /* Cor de fundo de fallback */
}

/* Cada slide individual */
.carousel-slide {
    position: absolute;
    inset: 0; /* Ocupa todo o espaço (top, right, bottom, left: 0) */
    opacity: 0; /* Começa invisível */
    transition: opacity 1.5s ease-in-out; /* Transição de fade super suave de 1.5s */
    z-index: 1;
}

/* O slide ativo se torna visível */
.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

/* A imagem de fundo do slide */
.slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    /* Um filtro sutil para escurecer e melhorar a leitura do texto */
    filter: brightness(0.7) contrast(1.1);
    transform: scale(1.05); /* Leve zoom inicial */
    transition: transform 6s ease-out; /* Efeito sutil de "Ken Burns" (zoom lento) */
}

.carousel-slide.active .slide-bg {
    transform: scale(1); /* Remove o zoom lentamente quando ativo */
}

/* Overlay Gradiente para garantir leitura do texto na parte inferior */
.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.1) 100%);
}

/* Conteúdo de Texto do Slide */
.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 4rem; /* Espaçamento generoso */
    color: white;
    z-index: 10;
    max-width: 650px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 1s ease-out 0.5s; /* Delay de 0.5s para o texto entrar depois da imagem */
}

.carousel-slide.active .slide-content {
    transform: translateY(0);
    opacity: 1;
}

/* Indicadores (Bolinhas) */
.carousel-indicators {
    position: absolute;
    bottom: 2rem;
    right: 4rem; /* Alinhado à direita */
    display: flex;
    gap: 0.8rem;
    z-index: 20;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.indicator.active {
    background-color: white;
    transform: scale(1.2); /* A bolinha ativa fica ligeiramente maior */
}