﻿@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}


body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #0A192F;
    overflow: hidden;
}

.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: linear-gradient(135deg, #0A192F 0%, #002e6e 100%);
}

.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    display: block;
    list-style: none;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.15);
    animation: rise 25s linear infinite;
    bottom: -150px;
}

    .particle:nth-child(1) {
        left: 25%;
        width: 80px;
        height: 80px;
        animation-delay: 0s;
    }

    .particle:nth-child(2) {
        left: 10%;
        width: 20px;
        height: 20px;
        animation-delay: 2s;
        animation-duration: 12s;
    }

    .particle:nth-child(3) {
        left: 70%;
        width: 20px;
        height: 20px;
        animation-delay: 4s;
    }

    .particle:nth-child(4) {
        left: 40%;
        width: 60px;
        height: 60px;
        animation-delay: 0s;
        animation-duration: 18s;
    }

    .particle:nth-child(5) {
        left: 65%;
        width: 20px;
        height: 20px;
        animation-delay: 0s;
    }

    .particle:nth-child(6) {
        left: 75%;
        width: 110px;
        height: 110px;
        animation-delay: 3s;
    }

    .particle:nth-child(7) {
        left: 35%;
        width: 150px;
        height: 150px;
        animation-delay: 7s;
    }

    .particle:nth-child(8) {
        left: 50%;
        width: 25px;
        height: 25px;
        animation-delay: 15s;
        animation-duration: 45s;
    }

    .particle:nth-child(9) {
        left: 20%;
        width: 15px;
        height: 15px;
        animation-delay: 2s;
        animation-duration: 35s;
    }

    .particle:nth-child(10) {
        left: 85%;
        width: 150px;
        height: 150px;
        animation-delay: 0s;
        animation-duration: 11s;
    }

@keyframes rise {
    0% {
        transform: translateY(0);
        opacity: 1;
        border-radius: 0%;
    }

    100% {
        transform: translateY(-1000px);
        opacity: 0;
        border-radius: 50%;
    }
}


.login-container {
    display: flex;
    width: 900px;
    height: 550px;
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.9);
    z-index: 1;
}


.left-panel {
    flex: 1;
    background-color: #002e6e;
    color: #fff;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%2300419b" fill-opacity="0.5" d="M0,192L48,176C96,160,192,128,288,133.3C384,139,480,181,576,186.7C672,192,768,160,864,138.7C960,117,1056,107,1152,112C1248,117,1344,139,1392,149.3L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
}

.left-panel-content {
    z-index: 2;
}

    .left-panel-content img {
        object-fit: scale-down;
    }

.left-panel h1 {
    display: flex;
    align-items: center;
    gap: 15px;
    letter-spacing: 0.5px;
    line-height: 1;
}

.gear-icon {
    width: 40px;
    height: 40px;
    filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(180deg) brightness(100%) contrast(100%);
}

.right-panel {
    flex: 1.2;
    padding: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-form {
    width: 100%;
    max-width: 350px;
    text-align: center;
}

.form-header {
    margin-bottom: 30px;
    color: #333;
}

    .form-header svg {
        width: 50px;
        height: 50px;
        color: #002e6e;
        margin-bottom: 10px;
    }

    .form-header h2 {
        color: #002e6e;
    }

.input-group {
    position: relative;
    margin-bottom: 20px;
}

    .input-group input {
        width: 100%;
        padding: 15px;
        border: 1px solid #ccc;
        border-radius: 8px;
        font-size: 12px;
        transition: border-color 0.3s, box-shadow 0.3s;
    }

        .input-group input:focus {
            outline: none;
            border-color: #002e6e;
            box-shadow: 0 0 0 3px rgba(0, 46, 110, 0.2);
        }

.form-options {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 25px;
}

    .form-options .forgot-password {
        font-size: 14px;
        color: #555;
        text-decoration: none;
        transition: color 0.3s;
    }

        .form-options .forgot-password:hover {
            color: #002e6e;
            text-decoration: underline;
        }

.login-button {
    width: 100%;
    padding: 15px;
    background-color: #002e6e;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

    .login-button:hover {
        background-color: #00419b;
        transform: translateY(-2px);
    }

.signup-link {
    margin-top: 25px;
    font-size: 14px;
    color: #555;
}

    .signup-link a {
        color: #002e6e;
        text-decoration: none;
        font-weight: 500;
    }

        .signup-link a:hover {
            text-decoration: underline;
        }

@media (max-width: 920px) {
    .login-container {
        flex-direction: column;
        width: 90%;
        max-width: 450px;
        height: auto;
    }

    .left-panel {
        padding: 30px;
        border-radius: 20px 20px 0 0;
    }

        .left-panel h1 {
            font-size: 18px !important;
        }

    .right-panel {
        border-radius: 0 0 20px 20px;
    }
}

.text-required {
    color: red;
    font-size: 12px;
}


.codigo-inputs {
    display: flex;
    justify-content: space-between;
    gap: 5px;
    margin-top: 10px;
}

    .codigo-inputs input {
        width: 50px;
        height: 50px;
        text-align: center;
        font-size: 18px;
        border: 1px solid #ccc;
        border-radius: 50%;
        outline: none;
        transition: border-color 0.2s;
        color: #002e6e;
        background-color: white;
        font-weight: 600;
        font-size: 16px;
        border-color: #002e6e;
    }

#grupoCodigo span {
    font-size: 14px;
}

.botoes-auxiliares {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 5px;
}

.editar-email-button,
.reenviar-codigo-button {
    background: none;
    border: none;
    color: #14285A;
    cursor: pointer;
    padding: 0;
    font-size: 0.8em;
}

    .editar-email-button:hover,
    .reenviar-codigo-button:hover {
        color: #0094ff;
        text-decoration: underline;
    }

/* ========================================================= */
/* PAINEL ESQUERDO: MURAL DE AVISOS (TEMA ESCURO ORIGINAL)   */
/* ========================================================= */

.left-panel {
    display: flex;
    flex-direction: column;
    padding: 2.5rem;
    /* Mantém o seu azul escuro original - se precisar, remova essa linha para usar o que já estava no seu styles.css */
    background-color: #002e6e;
    position: relative;
    overflow: hidden;
}

.avisos-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-width: 450px;
    margin: 0 auto;
    width: 100%;
    z-index: 2; /* Garante que os avisos fiquem por cima das formas de fundo */
}

/* Cabeçalho do Mural (Agora Branco) */
.avisos-header {
    text-align: center;
    margin-bottom: 2rem;
}

    .avisos-header img {
        /* Ajustado para ficar igual a primeira foto */
        max-width: 250px;
        margin-bottom: 1.5rem;
    }

    .avisos-header h2 {
        color: #ffffff; /* Texto branco para contrastar com o fundo azul */
        font-size: 1.6rem;
        font-weight: 800;
        margin-bottom: 0.5rem;
        line-height: 1.2;
    }

    .avisos-header p {
        color: #93c5fd; /* Azul claro para o subtítulo */
        font-size: 1rem;
        margin-bottom: 0;
    }

/* Lista Scrollável */
.avisos-lista {
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 10px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

    /* Scrollbar adaptada para o fundo escuro */
    .avisos-lista::-webkit-scrollbar {
        width: 6px;
    }

    .avisos-lista::-webkit-scrollbar-thumb {
        background-color: rgba(255, 255, 255, 0.2);
        border-radius: 4px;
    }

    .avisos-lista::-webkit-scrollbar-track {
        background: transparent;
    }

/* Cartões de Aviso */
.aviso-card {
    background: rgba(255, 255, 255, 0.95); /* Fundo branco levemente translúcido */
    border: none;
    border-left: 4px solid #3b82f6; /* Borda lateral azul clara */
    border-radius: 8px;
    padding: 1.25rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: left;
    overflow-wrap: break-word; /* Padrão moderno */
    word-wrap: break-word; /* Suporte para navegadores antigos */
    word-break: break-word;
}

    .aviso-card:hover {
        transform: translateX(4px);
        box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    }

    .aviso-card h3 {
        margin: 0 0 0.5rem 0;
        font-size: 1.1rem;
        color: #0f172a; /* Título do aviso escuro */
        font-weight: 700;
        overflow-wrap: break-word;
        word-break: break-word;
    }

.aviso-data {
    display: block;
    font-size: 0.85rem;
    color: #64748b;
}

/* Botão de Ler Mais no Card */
.btn-ler-aviso {
    background: none;
    border: none;
    color: #2563eb;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0;
    cursor: pointer;
    transition: color 0.2s;
}

    .btn-ler-aviso:hover {
        color: #1e40af;
        text-decoration: underline;
    }

/* Estado Vazio (Sem avisos) */
.sem-avisos {
    text-align: center;
    color: #93c5fd; /* Azul claro */
    padding: 3rem 0;
}

    .sem-avisos p {
        margin-top: 1rem;
    }
