* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    background-image: url('../assets/fondo-login.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.login-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.25);
}

.login-box {
    width: 100%;
    max-width: 400px;
    padding: 35px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.login-box h1 {
    margin: 0 0 30px;
    text-align: center;
    font-size: 26px;
    color: #222;
}

.campo {
    margin-bottom: 20px;
}

.campo label {
    display: block;
    margin-bottom: 7px;
    font-size: 14px;
    color: #444;
}

.campo input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 7px;
    font-size: 14px;
}

.campo input:focus {
    outline: none;
    border-color: #555;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

.login-box button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 7px;
    background: #222;
    color: white;
    font-size: 15px;
    cursor: pointer;
}

.login-box button:hover {
    background: #333;
}

@media (max-width: 500px) {
    .login-box {
        padding: 25px;
    }
}
.logo {
    display: block;
    max-width: 180px;
    max-height: 90px;
    margin: 0 auto 20px;
    object-fit: contain;
}

.subtitulo {
    margin: -20px 0 30px;
    text-align: center;
    color: #666;
    font-size: 14px;
}
.mensaje-error {
    color: #dc3545;
    font-size: 14px;
    text-align: center;
    margin-top: 15px;
}


.campo-password {
    position: relative;
}

.campo-password input {
    width: 100%;
    padding-right: 40px;
}

.campo-password .btn-mostrar-password {
    position: absolute;

    right: 10px;
    top: 50%;
    transform: translateY(-50%);

    width: 24px !important;
    height: 24px !important;

    min-width: 24px !important;

    padding: 0 !important;
    margin: 0 !important;

    border: none !important;
    background: transparent !important;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
}

.campo-password .btn-mostrar-password:hover,
.campo-password .btn-mostrar-password:focus,
.campo-password .btn-mostrar-password:active {
    background: transparent !important;
    border: none !important;
    outline: none;
}

.campo-password .btn-mostrar-password svg {
    width: 18px;
    height: 18px;

    fill: none;
    stroke: #666;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.linea-password {
    opacity: 0;
}

.password-visible .linea-password {
    opacity: 1;
}