/* ====== Estilos generales ====== */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f0f2f5;
    overflow: hidden;
}

/* ====== Contenedor principal ====== */
.container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1300px;
    padding: 50px;
}

/* ====== Imagen de fondo y Lateral ====== */
.wave {
    position: fixed;
    height: 100%;
    left: 0;
    bottom: 0;
    z-index: -1;
}

.img {
    flex: 1;
    display: flex;
    justify-content: center;
    padding-right: 50px;
}

.img img {
    max-width: 100%;
    height: auto;
}

/* ====== Formulario login ====== */
.login-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px 25px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 300px; /* Ancho ajustado para hacerlo más angosto */
    width: 100%;
    margin: 0 auto; /* Centra el contenedor horizontalmente */
}

.login-content img {
    display: block;
    margin: 0 auto 20px auto;
    max-width: 250px;
    height: auto;
}

.title {
    color: #333;
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.8rem;
}

/* ====== Inputs corregidos ====== */
.input-div {
    position: relative;
    width: 100%;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
}

.input-div .div {
    position: relative;
    height: 45px;
    width: 100%;
    display: flex;
    align-items: center;
}

.input-div .input {
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    background: none;
    color: #555;
    font-size: 1rem;
    border-bottom: 2px solid #d9d9d9;
    transition: all 0.3s ease;
    padding: 0 10px 0 45px;
    z-index: 1;
}

.input-div .i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #777;
    pointer-events: none;
    z-index: 2;
    transition: all 0.3s ease;
}

.input-div.focus .input {
    border-bottom-color: #007bff;
}

.input-div.focus .i {
    color: #007bff;
}

/* Contraseña con ícono ojo */
.input-div.pass {
    display: flex;
    align-items: center;
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #777;
    font-size: 18px;
    z-index: 3;
}

/* ====== Botón y notificaciones ====== */
.btn {
    display: block;
    width: 100%;
    height: 50px;
    border-radius: 25px;
    outline: none;
    border: none;
    background-image: linear-gradient(to right, #007bff, #0056b3, #007bff);
    background-size: 200%;
    font-size: 1rem;
    color: #fff;
    text-transform: uppercase;
    margin: 1rem 0;
    cursor: pointer;
    transition: background-position 0.5s;
}

.btn:hover {
    background-position: right;
}

#notification-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: 90%;
    max-width: 400px;
    pointer-events: none;
}

.error-message {
    font-family: 'Poppins', sans-serif;
    color: #a42c2f;
    background-color: #ffe6e6;
    border: 1px solid #ffcccc;
    border-radius: 8px;
    padding: 15px 20px;
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
    line-height: 1.4;
}

.error-notification.show {
    opacity: 1;
    transform: translateY(0);
}

/* ====== Media Queries para todo tipo de dispositivo ====== */

/* Escritorios grandes */
@media screen and (min-width: 1201px) {
    .login-content {
        max-width: 320px;
    }
}

/* Escritorios y laptops */
@media screen and (max-width: 1200px) {
    .container {
        padding: 30px;
    }
    .login-content {
        max-width: 300px;
    }
}

/* Tablets */
@media screen and (max-width: 992px) {
    .container {
        flex-direction: column;
        padding: 0;
        align-items: center;
    }
    .img {
        display: none;
    }
    .login-content {
        max-width: 380px;
        width: 95%;
        margin: 0 auto;
    }
}

/* Móviles grandes */
@media screen and (max-width: 576px) {
    .login-content {
        max-width: 320px;
        width: 95%;
        padding: 20px 15px;
    }
    .title {
        font-size: 1.3rem;
    }
    .btn {
        font-size: 0.95rem;
    }
}

/* Móviles pequeños */
@media screen and (max-width: 400px) {
    .login-content {
        max-width: 280px;
    }
    .login-content img {
        max-width: 140px;
    }
    .title {
        font-size: 1.1rem;
    }
    .input-div .input {
        font-size: 0.9rem;
    }
}