/* ======= Estilos Generales ======= */
body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(to right, #eef2f7, #dbe5f1);
    text-align: center;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

/* ======= Contenedor del Login ======= */
.login-container {
    width: 350px;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.5s ease-in-out;
    box-sizing: border-box;
}

/* ======= Títulos ======= */
h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

/* ======= Inputs ======= */
input {
    width: calc(100% - 24px); /* 📌 Ajuste para evitar desbordamiento */
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    background: #f9f9f9;
    transition: 0.3s;
    box-sizing: border-box;
}

input:focus {
    border-color: #28a745;
    background: #fff;
    outline: none;
}

/* ======= Botón ======= */
button {
    width: 100%;
    padding: 12px;
    margin-top: 15px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    background: linear-gradient(to right, #28a745, #218838);
    color: white;
    transition: 0.3s;
}

button:hover {
    background: linear-gradient(to right, #218838, #1e7e34);
    transform: scale(1.05);
}

/* ======= Mensaje de Error ======= */
.error {
    color: #ff4d4d;
    font-size: 14px;
    margin-top: 10px;
    font-weight: bold;
}

/* ======= Animación de Aparición ======= */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
