/* login.css */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.background {
    background: url('../imagens/BackgroundLogin.png') no-repeat center center fixed;
    background-size: cover;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Poppins', sans-serif;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-card {
    background: rgba(47, 0, 94, 0.9);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    backdrop-filter: blur(8px);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
    animation: fadeIn 1s ease;
}

.logo {
    width: 140px;
    margin-bottom: 30px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.input-container {
    position: relative;
    width: 100%;
}

.input-container input {
    width: 100%;
    padding: 15px 45px 15px 40px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    background: #fff;
    color: #333;
    outline: none;
    text-align: center;
}

.input-container .icon {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: #2F005E;
    font-size: 18px;
}

.input-container .toggle-password {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #2F005E;
    font-size: 18px;
}

form button {
    width: 100%;
    padding: 15px;
    background: #FF2E97;
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

form button:hover {
    background: #e02685;
}

/* Animação de entrada */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsivo para mobile */
@media (max-width: 480px) {
    .login-card {
        padding: 30px 20px;
    }

    .logo {
        width: 120px;
    }

    .input-container input,
    form button {
        padding: 12px;
        font-size: 16px;
    }
}

.erro-login {
    background-color: rgba(255, 0, 0, 0.8);
    color: white;
    font-size: 14px;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 8px;
}
