* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

body {
    min-height: 100vh;
    background:
        linear-gradient(rgba(13, 27, 42, 0.85), rgba(13, 27, 42, 0.85)),
        url("../fondo_login2.jpeg");
    background-size: cover;
    background-position: center;
    color: white;
}

/* HEADER */

.header {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 50px;
}

.logo {
    width: 95px;
    height: auto;
}

.titulo {
    text-align: center;
}

.titulo h1 {
    font-size: 32px;
    color: white;
    font-weight: bold;
}

.titulo h2 {
    font-size: 19px;
    color: #d4af37;
    margin-top: 6px;
}

/* CONTENEDOR PRINCIPAL */

.contenedor {
    width: 100%;
    min-height: 80vh;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 40px;
}

/* INFORMACIÓN IZQUIERDA */

.info {
    width: 45%;
    animation: entrada 1s ease;
}

.info h1 {
    font-size: 75px;
    color: #d4af37;
    margin-bottom: 20px;
}

.info p {
    font-size: 22px;
    line-height: 1.8;
    text-align: justify;
}

/* LOGIN */

.login-box {
    width: 400px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    padding: 45px;
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: entrada 1.2s ease;
}

.login-box h2 {
    text-align: center;
    margin-bottom: 30px;
    color: white;
    font-size: 30px;
}

/* INPUTS */

.login-box input {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: none;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 16px;
    transition: 0.3s;
}

.login-box input::placeholder {
    color: #ddd;
}

.login-box input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.3);
}

/* CAMPO CONTRASEÑA */

.password-box {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
}

.password-box input {
    margin-bottom: 0;
    padding-right: 70px;
}

.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);

    background: transparent;
    border: none;
    outline: none;
    box-shadow: none;

    color: #d4af37;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 1px;

    cursor: pointer;
    user-select: none;
}

.password-toggle:hover {
    color: #f1c93b;
}

.password-toggle:active {
    transform: translateY(-50%) scale(0.96);
}

/* BOTÓN PRINCIPAL */

.login-box form > button[type="submit"] {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 12px;
    background: #d4af37;
    color: #0d1b2a;
    font-size: 17px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.login-box form > button[type="submit"]:hover {
    background: white;
    transform: translateY(-2px);
}

/* MENSAJE ERROR */

.error {
    margin-top: 15px;
    text-align: center;
    color: #ffb3b3;
}

/* ANIMACIÓN */

@keyframes entrada {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* RESPONSIVE */

@media (max-width: 900px) {
    .contenedor {
        flex-direction: column;
        gap: 35px;
        padding: 30px 20px;
    }

    .info {
        width: 100%;
        text-align: center;
    }

    .info h1 {
        font-size: 55px;
    }

    .info p {
        font-size: 18px;
        text-align: center;
    }

    .login-box {
        width: 100%;
        max-width: 400px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 18px 20px;
    }

    .titulo h1 {
        font-size: 24px;
    }

    .titulo h2 {
        font-size: 16px;
    }

    .info h1 {
        font-size: 45px;
    }

    .info p {
        font-size: 16px;
    }

    .login-box {
        padding: 35px 25px;
    }

    .login-box h2 {
        font-size: 26px;
    }
}