/* CSS para el toggle de contraseña - Versión corregida */

.form-input.position-relative {
    position: relative;
}

.show-hide {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: none;
    border: none;
    padding: 0;
}

.show-hide span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    height: 100%;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
}

/* Eliminar cualquier pseudo-elemento del tema original */
.show-hide span::before,
.show-hide span::after {
    display: none !important;
    content: none !important;
}

/* Eliminar clases show/hide del tema original */
.show-hide span.show::before,
.show-hide span.hide::before {
    display: none !important;
    content: none !important;
}

/* Hover effect solo para nuestros iconos */
.show-hide span:hover i {
    color: #495057 !important;
    transform: scale(1.1);
}

/* Asegurar que el input tenga padding para el icono */
.form-input.position-relative .form-control {
    padding-right: 45px !important;
}

/* Responsive */
@media (max-width: 576px) {
    .show-hide {
        right: 12px;
        width: 18px;
        height: 18px;
    }
    
    .show-hide span i {
        font-size: 12px !important;
    }
}

/* Estados activos */
.show-hide span:active {
    transform: scale(0.95);
}

/* Ocultar cualquier contenido de texto del span */
.show-hide span {
    font-size: 0 !important;
    line-height: 0 !important;
    text-indent: -9999px !important;
    overflow: hidden !important;
}

/* Asegurar que solo nuestros iconos sean visibles */
.show-hide span i {
    font-size: 14px !important;
    line-height: 1 !important;
    text-indent: 0 !important;
    display: inline-block !important;
    visibility: visible !important;
}
