body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: url('img/compu.jpg') no-repeat center center fixed;
    background-size: cover;
    backdrop-filter: blur(5px);
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

* {
    box-sizing: border-box;
}

.titulo-sistema {
    font-size: 24px;
    color: rgb(249, 249, 249);
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    padding: 10px 20px;
    line-height: 1.5;
    max-width: 900px;
    width: 90%;
    z-index: 2;
    position: relative;
}

.logo-sistema {
    margin-top: 10px;
    max-width: 200px;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 26, 26, 0.3);
    z-index: 0;
}

.container {
    display: flex;
    background-color: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(226, 215, 215, 0.3);
    width: 90%;
    max-width: 850px;
    position: relative;
    z-index: 1;
}

.login-container,
.client-section {
    padding: 50px;
    flex: 1;
}

.login-container {
    background-color: #ddd;
    border-right: 1px solid #ccc;
    border-radius: 16px 0 0 16px;
}

h1, h2 {
    color: #0a3b5b;
}

form label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: bold;
}

input {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #7b7979;
    border-radius: 8px;
    box-sizing: border-box;
}

button {
    width: 100%;
    padding: 14px;
    background-color: #0056b3;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #0d4d8d;
}

.client-section {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 🔴 BOTÓN ROJO "IR AL SITIO WEB" */
.btn-client {
    display: inline-block;
    margin-top: 20px;
    padding: 14px 28px;
    background-color: #c62828; /* rojo fuerte */
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn-client:hover {
    background-color: #b71c1c; /* rojo más oscuro */
}

/* -------- ESTILOS PARA PASSWORD -------- */

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 45px;
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 18px;
    color: #555;
    user-select: none;
    transition: transform 0.3s ease, color 0.3s ease;
}

.toggle-password:hover {
    color: #000;
    transform: translateY(-50%) scale(1.2);
}

.error-message {
    color: red;
    font-size: 14px;
    margin-top: 10px;
}

/* -------- RESPONSIVE -------- */

@media (max-width: 768px) {
    .titulo-sistema {
        font-size: 20px;
        margin-bottom: 20px;
        padding: 10px;
    }

    .container {
        flex-direction: column;
        width: 95%;
        border-radius: 8px;
    }

    .login-container,
    .client-section {
        padding: 30px;
        width: 100%;
    }

    .login-container {
        border-right: none;
        border-radius: 8px 8px 0 0;
        margin-bottom: 1px;
    }

    .client-section {
        border-top: 1px solid #ccc;
        border-radius: 0 0 8px 8px;
        margin-top: 0;
    }
}

@media (max-width: 480px) {
    .titulo-sistema {
        font-size: 18px;
        padding: 8px;
    }

    .login-container,
    .client-section {
        padding: 20px;
    }
}
