/* ============================
   RESET BÁSICO E CONFIG GERAL
============================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(-45deg, #1a2a6c, #ffffff, #1a2a6c);
    background-size: 400% 400%;
    animation: backgroundAnim 12s ease infinite;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 1rem;
}

/* ============================
   ANIMAÇÃO DO FUNDO
============================ */
@keyframes backgroundAnim {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ============================
   LOGO FLUTUANTE
============================ */
.logo-flutuante {
    position: absolute;
    width: 80px;
    opacity: 1.4;
    animation: moverLogo 20s infinite ease-in-out alternate;
    pointer-events: none;
    z-index: 0;
}

@keyframes moverLogo {
    0%   { top: 5%;  left: 5%;  transform: rotate(0deg) scale(1); }
    25%  { top: 20%; left: 70%; transform: rotate(15deg) scale(1.2); }
    50%  { top: 60%; left: 50%; transform: rotate(-10deg) scale(1); }
    75%  { top: 40%; left: 10%; transform: rotate(10deg) scale(0.9); }
    100% { top: 10%; left: 80%; transform: rotate(-15deg) scale(1.1); }
}

/* ============================
   CONTAINER DE LOGIN
============================ */
.login-container {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
    text-align: center;
    z-index: 1;
    position: relative;
    opacity: 0.85;
}

/* ============================
   TÍTULO
============================ */
.login-container h1 {
    margin-bottom: 1.5rem;
    color: #1a2a6c;
}

/* ============================
   CAMPOS DO FORMULÁRIO
============================ */
.login-container label {
    display: block;
    text-align: left;
    margin: 0.5rem 0 0.2rem;
    font-weight: bold;
    color: #222;
}

.login-container input[type="email"],
.login-container .senha-container input[type="password"],
.login-container .senha-container input[type="text"] {
    width: 100%;
    padding: 0.6rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 1rem;
    background-color: #f9f9f9;
    position: relative;
}

/* ============================
   Ícone de visualização de senha
============================ */
.login-container .senha-container {
    position: relative;
    margin-bottom: 1%;
}
.login-container .senha-container input {
    padding-right: 3rem; /* espaço para o ícone */
}
.login-container .toggle-password {
    position: absolute;
    top: 38%;
    right: -2rem;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 1.4rem;
    color: #555;
    z-index: 2;

}

/* ============================
   BOTÃO
============================ */
.login-container button {
    width: 100%;
    padding: 0.8rem;
    background-color: #1a2a6c;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s;
}

.login-container button:hover {
    background-color: #16225a;
    transform: scale(1.02);
}

/* ============================
   MENSAGEM DE ERRO
============================ */
.erro {
    background-color: #ff4d4d;
    color: white;
    padding: 0.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-weight: bold;
}

/* ============================
   RESPONSIVIDADE (TELAS PEQUENAS)
============================ */
@media (max-width: 480px) {
    .login-container {
        padding: 1.5rem 1rem;
        max-width: 100%;
        border-radius: 15px;
    }

    .login-container h1 {
        font-size: 1.5rem;
    }

    .login-container input,
    .login-container button {
        font-size: 0.95rem;
        padding: 0.7rem;
    }

    .logo-flutuante {
        width: 60px;
    }

    body {
        flex-direction: column;
    }
}
