body {
    background: linear-gradient(135deg, #007bff, #00c6ff);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    animation: backgroundFade 10s ease infinite alternate;
    overflow: hidden;
}

@keyframes backgroundFade {
    0% { background: linear-gradient(135deg, #007bff, #00c6ff); }
    100% { background: linear-gradient(135deg, #6a11cb, #2575fc); }
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    width: 100%;
    animation: slideIn 0.8s ease forwards;
    opacity: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.login-box img {
    width: 80px;
    margin-bottom: 20px;
}

.login-box h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-size: 26px;
}

.login-box input {
    width: 100%;
    padding: 14px;
    margin: 10px 0 20px;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-align: left;
}

.login-box input:focus {
    border-color: #007bff;
    box-shadow: 0 0 10px rgba(0,123,255,0.25);
    outline: none;
}

.login-box button {
    width: 100%;
    background: #007bff;
    color: white;
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.login-box button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.erro {
    color: #dc3545;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    animation: shake 0.4s ease;
}

@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}
.login-box form {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-box input,
.login-box button {
    width: 90%; /* reduzindo um pouco pra ficar mais elegante */
}