/* css/login-modern.css - Versão Dark Animated (Anexo 1) */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    color: #fff;
    /* Fundo degradê escuro (Azul escuro para roxo escuro, como no anexo 1) */
    background: linear-gradient(135deg, #171d4b 0%, #3d1b7a 50%, #4c1d95 100%);
    overflow: hidden;
    /* Impede barra de rolagem por causa das particulas */
    height: 100vh;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Fica no fundo */
}

.login-page-wrapper {
    position: relative;
    z-index: 2;
    /* Fica na frente das particulas */
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    height: 100vh;
    align-items: center;
    justify-content: center;
    gap: 80px;
}

/* Lado Esquerdo */
.login-left-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Centraliza logo e título, ajustável depois */
    text-align: center;
    max-width: 600px;
    /* Largura aumentada para não quebrar tanto o texto */
    padding: 20px;
}

/* Bolinha Animada do Logo */
.logo-spinner-container {
    position: relative;
    width: 110px;
    height: 110px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.outer-spinner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    /* Borda sólida colorida com um pedaço transparente para dar o efeito de Loading spinning */
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: #a78bfa;
    /* Cor da linha que vai girar (roxo clarinho) */
    border-left-color: #818cf8;
    /* Azul claro */
    animation: spin-outer 3s linear infinite;
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.4);
}

@keyframes spin-outer {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.inner-logo-bg {
    width: 85px;
    height: 85px;
    background-color: #6d28d9;
    /* Fundo roxo */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    overflow: hidden;
    padding: 10px;
}

.login-logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.company-name {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.company-subtitle {
    font-size: 1rem;
    font-weight: 300;
    color: #cbd5e1;
    margin-bottom: 30px;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.features-list li {
    font-size: 0.95rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    color: #e2e8f0;
}

.features-list li i {
    color: #e2e8f0;
    /* Cor do check */
    margin-right: 12px;
    font-size: 1.1rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    padding: 2px;
}


/* Lado Direito (Card de Login) */
.login-right-content {
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

.login-card-dark {
    background-color: #484b8f;
    /* Fundo roxo acinzentado opaco do cartão */
    /* background: rgba(71, 74, 143, 0.8); se quiser ser meio transparente (glass) */
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.login-header-dark {
    text-align: center;
    margin-bottom: 30px;
}

.lock-icon-container {
    width: 45px;
    height: 45px;
    background-color: #8b5cf6;
    /* Botão no topo do card */
    color: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin: 0 auto 15px auto;
}

.login-title-dark {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0 0 5px 0;
}

.login-subtitle-dark {
    font-size: 0.85rem;
    color: #c4b5fd;
    /* Roxo clarinho */
    margin: 0;
}


/* Inputs Escuros */
.form-label {
    color: #e2e8f0;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

/* Contêiner de input simulando o fundo diferenciado */
.input-group-text,
.form-control {
    background-color: #3f3b7f;
    /* Cor do input interno, mais escuro */
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* Borda muito sutil */
    color: #fff;
    transition: all 0.3s ease;
}

.input-group-text {
    border-right: none;
    border-radius: 8px 0 0 8px !important;
    color: #a78bfa;
}

.form-control {
    border-left: none;
    border-radius: 0 8px 8px 0 !important;
    padding: 12px 15px;
    font-size: 0.95rem;
}

.form-control::placeholder {
    color: #818cf8;
    /* Placeholder um pouco mais chamativo/claro pra integrar com o roxo */
    font-size: 0.9rem;
}

.form-control:focus {
    background-color: #3730a3;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
    color: #fff;
}

.input-group:focus-within .input-group-text {
    background-color: #3730a3;
    border-color: #8b5cf6;
    color: #c4b5fd;
}

/* Botão Entrar */
.btn-primary-dark {
    background-color: #8b5cf6;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 14px;
    font-size: 1rem;
    font-weight: 600;
    width: 100%;
    margin-top: 10px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary-dark:hover {
    background-color: #7c3aed;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(124, 58, 237, 0.4);
}

/* Infos abaixo do botão */
.footer-text {
    text-align: center;
    margin-top: 25px;
    font-size: 0.75rem;
    color: #a78bfa;
}

.footer-text p {
    margin: 5px 0;
}

.forgot-password a {
    color: #c4b5fd;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    transition: color 0.2s;
    display: block;
    text-align: center;
    margin-top: 15px;
}

.forgot-password a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Alertas */
.alert {
    border-radius: 8px;
    font-size: 0.85rem;
    border: none;
    margin-bottom: 20px;
}

.alert-danger {
    background-color: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border-left: 4px solid #ef4444;
}

.alert-success {
    background-color: rgba(34, 197, 94, 0.15);
    color: #86efac;
    border-left: 4px solid #22c55e;
}

/* Responsividade */
@media (max-width: 900px) {
    body {
        overflow: hidden;
        /* Impede qualquer barra de rolagem */
        height: 100vh;
        height: 100dvh;
        /* For iPhone Safari compat */
        width: 100vw;
    }

    .login-page-wrapper {
        flex-direction: column;
        gap: 15px;
        /* Reduz espaço entre logo e painel */
        height: 100vh;
        height: 100dvh;
        /* Usa viewport dinâmico pra não cortar no iPhone */
        padding: 5vh 15px 10px 15px;
        /* Compensa empurrando o conteudo de cima para baixo suavemente */
        justify-content: flex-start;
        /* Alinha a partir do topo para evitar cortes por baixo na tela pequena */
        align-items: center;
    }

    .login-left-content {
        margin-bottom: 0;
        max-width: 100%;
        padding: 0;
        /* Remove padding extra */
    }

    /* Ajusta a logo e o spinner na versão mobile para ficarem maiores em proporcao e não comer altura no iphone */
    .logo-spinner-container {
        width: 100px;
        height: 100px;
        margin-bottom: 0px;
    }

    .inner-logo-bg {
        width: 75px;
        height: 75px;
        padding: 8px;
    }

    .company-name,
    .company-subtitle {
        display: none;
        /* Oculta o título e subtítulo no celular */
    }

    .features-list {
        display: none;
        /* Oculta a lista no celular para não ficar gigante */
    }

    .login-right-content {
        max-width: 100%;
        padding: 0;
    }

    .login-card-dark {
        padding: 20px 15px;
        /* Reduz espaçamento interno do card */
    }

    .login-header-dark {
        margin-bottom: 15px;
        /* Menos espaço abaixo do cabeçalho */
    }

    .lock-icon-container {
        width: 35px;
        height: 35px;
        font-size: 1rem;
        margin-bottom: 10px;
    }

    .login-title-dark {
        font-size: 1.25rem;
    }

    .login-subtitle-dark {
        font-size: 0.8rem;
    }

    .form-control {
        padding: 10px 12px;
        /* Reduz input */
    }

    .btn-primary-dark {
        padding: 10px;
        margin-top: 5px;
    }

    .footer-text {
        margin-top: 15px;
        font-size: 0.7rem;
    }

    .forgot-password a {
        margin-top: 10px;
        font-size: 0.8rem;
    }

    /* Aperta as margens padrão do bootstrap nos forms */
    .mb-3 {
        margin-bottom: 10px !important;
    }

    .mb-4 {
        margin-bottom: 15px !important;
    }
}