body {
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    background: #f0f0f0;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1000px;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
    padding: 20px;
    box-sizing: border-box;
}

.img {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.img img {
    width: 100%;
    max-width: 300px;
    height: auto;
    display: block;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
    overflow: hidden;
}

.login-content {
    width: 100%;
    max-width: 350px;
    background: white;
    padding: 20px 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

img.wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    max-height: 650px;
    object-fit: cover;
    z-index: -1;
}

.avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 10px auto;
    display: block;
    pointer-events: none;
    user-select: none;
    cursor: default;
    outline: none;
    border-radius: 50%;
}

.title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    user-select: none;
    cursor: default;
    text-align: center;
    color: #333;
}

.input-container {
    position: relative;
    margin: 20px auto;
    width: 100%;
    max-width: 250px;
}

.input-container input {
    width: 100%;
    padding: 8px 35px 6px 30px;
    border: none;
    border-bottom: 1px solid #ccc;
    background: none;
    outline: none;
    font-size: 14px;
    transition: border-color 0.3s;
}

.input-container input:focus {
    border-bottom: 1px solid #5A67D8;
    box-shadow: none;
}

.icon {
    position: absolute;
    top: 50%;
    left: 8px;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 14px;
    pointer-events: none;
}

.icon-eye {
    position: absolute;
    bottom: 6px;
    right: 10px;
    font-size: 16px;
    cursor: pointer;
    color: #555;
}

.btn {
    padding: 10px 30px;
    background: #5A67D8;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #434190;
}

.text-center a {
    font-size: 13px;
    color: #6b21a8;
    text-decoration: none;
}

.text-center a:hover {
    text-decoration: underline;
}

/* Responsivo para móviles */
@media screen and (max-width: 768px) {
    .container {
        flex-direction: column;
        height: auto;
    }

    .img,
    .login-content {
        width: 100%;
    }

    .img {
        margin-bottom: 20px;
    }
}

/* ========== CONTROL GLOBAL DE CURSOR Y SELECCIÓN ========== */

/* Evita que cualquier elemento excepto inputs pueda recibir foco o cursor */
body *:not(input):not(textarea):not(select) {
    outline: none !important;
    user-select: none !important;
    cursor: default !important;
}

/* Asegura que solo los campos permitidos tengan selección y cursor de texto */
input, textarea, select {
    user-select: text !important;
    cursor: text !important;
}
input[type="submit"], .btn {
    cursor: pointer !important;
}