﻿/* === Login Moderno (SaaS Style) === */

body, html {
    height: 100%;
    margin: 0;
    font-family: 'Inter', 'Segoe UI', sans-serif; /* Fonte moderna */
    overflow: hidden;
}

/* Wrapper Principal */
.login-page-wrapper {
    height: 100vh;
    width: 100vw;
    background-color: #F3F4F6; /* Fundo Cinza Claro */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Container Central (Card Flutuante) */
.login-container {
    display: flex;
    width: 100%;
    max-width: 1100px; /* Largura confortável */
    height: 85vh;
    max-height: 800px;
    background-color: #FFFFFF;
    border-radius: 24px; /* Bordas bem arredondadas */
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); /* Sombra suave */
    overflow: hidden;
    margin: 20px;
}

/* === Coluna Esquerda (Formulário) === */
.left-column {
    flex: 1; /* Ocupa 50% */
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #FFFFFF;
    position: relative;
}

/* Card Interno (apenas para agrupar) */
.login-content {
    width: 100%;
    max-width: 400px;
    z-index: 2;
}

.login-logo {
    width: 60px;
    height: auto;
    margin-bottom: 1.5rem;
}

.login-title {
    color: #111827; /* Cinza Escuro */
    font-weight: 700;
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.login-subtitle {
    color: #6B7280; /* Cinza Médio */
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

/* === Inputs Modernos === */
.form-floating > .form-control {
    border: 1px solid #E5E7EB;
    background-color: #F9FAFB;
    border-radius: 12px;
    height: 58px;
    font-size: 1rem;
    padding-left: 1rem; /* Ajuste para ícone se usar */
}

.form-floating > label {
    padding-left: 1rem;
    color: #9CA3AF;
}

.form-control:focus {
    background-color: #FFFFFF;
    border-color: #0D6EFD; /* Azul Primário */
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1); /* Anel de foco suave */
}

/* Botão Principal */
.btn-primary {
    background-color: #0D6EFD;
    border: none;
    height: 50px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.02em;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px rgba(13, 110, 253, 0.2);
}

    .btn-primary:hover {
        background-color: #0b5ed7;
        transform: translateY(-1px);
        box-shadow: 0 6px 8px rgba(13, 110, 253, 0.3);
    }

    .btn-primary:disabled {
        background-color: #9CA3AF;
        transform: none;
    }

/* === Coluna Direita (Destaque/Branding) === */
.right-column {
    flex: 1; /* Ocupa 50% */
    background-color: #111827; /* Fundo Escuro (Igual Sidebar) */
    background-image: linear-gradient(135deg, #111827 0%, #1F2937 100%); /* Gradiente sutil */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 4rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.right-content {
    position: relative;
    z-index: 2;
    max-width: 450px;
}

.right-column h1 {
    font-weight: 800;
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #FFFFFF, #9CA3AF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; /* Efeito gradiente no texto */
}

.right-column p {
    color: #D1D5DB;
    font-size: 1.1rem;
    line-height: 1.6;
    font-weight: 300;
}

/* Lista de Features */
.feature-list {
    list-style: none;
    padding: 0;
    margin-top: 2rem;
    text-align: left;
}

    .feature-list li {
        margin-bottom: 1rem;
        display: flex;
        align-items: center;
        color: #E5E7EB;
        font-weight: 500;
    }

    .feature-list i {
        background-color: rgba(255,255,255,0.1);
        padding: 8px;
        border-radius: 50%;
        margin-right: 12px;
        color: #60A5FA; /* Azul claro para ícones */
    }

/* === Animação de Cubos (Atualizada para ser sutil) === */
.bg-cubes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

    .bg-cubes li {
        position: absolute;
        display: block;
        list-style: none;
        width: 20px;
        height: 20px;
        background: rgba(255, 255, 255, 0.05); /* Muito sutil */
        animation: animate 25s linear infinite;
        bottom: -150px;
        border-radius: 4px;
    }

        /* Configuração dos cubos individuais (mantida mas suavizada) */
        .bg-cubes li:nth-child(1) {
            left: 25%;
            width: 80px;
            height: 80px;
            animation-delay: 0s;
        }

        .bg-cubes li:nth-child(2) {
            left: 10%;
            width: 20px;
            height: 20px;
            animation-delay: 2s;
            animation-duration: 12s;
        }

        .bg-cubes li:nth-child(3) {
            left: 70%;
            width: 20px;
            height: 20px;
            animation-delay: 4s;
        }

        .bg-cubes li:nth-child(4) {
            left: 40%;
            width: 60px;
            height: 60px;
            animation-delay: 0s;
            animation-duration: 18s;
        }

        .bg-cubes li:nth-child(5) {
            left: 65%;
            width: 20px;
            height: 20px;
            animation-delay: 0s;
        }

        .bg-cubes li:nth-child(6) {
            left: 75%;
            width: 110px;
            height: 110px;
            animation-delay: 3s;
        }

        .bg-cubes li:nth-child(7) {
            left: 35%;
            width: 150px;
            height: 150px;
            animation-delay: 7s;
        }

        .bg-cubes li:nth-child(8) {
            left: 50%;
            width: 25px;
            height: 25px;
            animation-delay: 15s;
            animation-duration: 45s;
        }

        .bg-cubes li:nth-child(9) {
            left: 20%;
            width: 15px;
            height: 15px;
            animation-delay: 2s;
            animation-duration: 35s;
        }

        .bg-cubes li:nth-child(10) {
            left: 85%;
            width: 150px;
            height: 150px;
            animation-delay: 0s;
            animation-duration: 11s;
        }

@keyframes animate {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
        border-radius: 4px;
    }

    100% {
        transform: translateY(-1000px) rotate(720deg);
        opacity: 0;
        border-radius: 50%;
    }
}

/* === Responsivo === */
@media (max-width: 992px) {
    .login-container {
        flex-direction: column-reverse; /* Imagem em cima, form embaixo */
        height: auto;
        max-height: none;
        margin: 0;
        border-radius: 0;
        width: 100%;
    }

    .right-column {
        padding: 3rem 2rem;
        min-height: 300px;
    }

    .left-column {
        padding: 3rem 1.5rem;
    }

    .login-content {
        max-width: 100%;
    }
}
