/* =========================================
   SISTEMA DE OJITO PARA CONTRASEÑAS
   ========================================= */

/* Contenedor relativo para posicionar el ojito encima del input */
.caja-password {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.caja-password input {
    width: 100%;
    padding-right: 40px !important; /* Dejamos espacio para no pisar el ojito */
}

/* El botón invisible que contiene el dibujo */
.btn-ojito {
    position: absolute;
    right: 10px;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s ease;
    background: transparent;
    border: none;
    outline: none;
}

.btn-ojito:hover {
    opacity: 1;
}

/* DIBUJO DEL OJO 100% CSS 
   Usamos border-radius asimétrico para hacer la forma de almendra
*/
.icono-ojo {
    width: 18px;
    height: 10px;
    border: 2px solid #2c3e50;
    border-radius: 50% 50% 50% 50% / 100% 100% 100% 100%;
    position: relative;
}

/* La pupila del ojo */
.icono-ojo::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background-color: #2c3e50;
    border-radius: 50%;
}

/* La línea diagonal para el estado "Cerrado" (Tachado) */
.btn-ojito.cerrado .icono-ojo::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 7px;
    width: 2px;
    height: 18px;
    background-color: #2c3e50;
    transform: rotate(45deg);
    z-index: 2;
}