/* Estilos para recuperación de contraseña */
.custom-font {
    font-family: 'Pacifico', cursive;
}

body {
    font-family: 'Inter', sans-serif;
}

.bg-auth {
    background-image: url("../imagenes/scott-blake-x-ghf9LjrVg-unsplash.jpg");
    background-size: cover;
    background-position: center;
}

.toggle-password {
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    outline: none;
}

.toggle-password:hover {
    background-color: rgba(16, 185, 129, 0.1);
    transform: scale(1.1);
}

.toggle-password:focus {
    background-color: rgba(16, 185, 129, 0.1);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

/* Contenedor de input con icono */
.password-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-container input {
    padding-right: 2.5rem !important;
    width: 100% !important;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    padding: 0.75rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: #374151;
    background-color: #ffffff;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.password-input-container input:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.password-input-container .toggle-password {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: transparent;
    border: none;
}

.password-input-container .toggle-password svg {
    width: 1.25rem;
    height: 1.25rem;
    color: #6b7280;
    transition: color 0.2s ease;
    stroke-width: 2;
}

.password-input-container .toggle-password:hover svg {
    color: #10b981;
}

.password-input-container .toggle-password:focus svg {
    color: #10b981;
}

/* Estilos adicionales para mejorar la apariencia */
.password-input-container input::placeholder {
    color: #9ca3af;
}

.password-input-container input:disabled {
    background-color: #f9fafb;
    color: #9ca3af;
    cursor: not-allowed;
}

/* Animaciones y transiciones */
.form-container {
    transition: all 0.3s ease;
}

.form-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Efectos para botones */
.btn-primary {
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.2);
}

/* Efectos para campos de entrada */
.form-input:focus {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

/* Estilos para mensajes */
.message-success {
    animation: slideInFromTop 0.5s ease-out;
}

.message-error {
    animation: slideInFromTop 0.5s ease-out;
}

@keyframes slideInFromTop {
    0% {
        transform: translateY(-20px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Estilos para validaciones de contraseña */
.validation-icon {
    transition: color 0.3s ease;
}

.validation-valid {
    color: #10B981 !important; /* Verde */
}

.validation-invalid {
    color: #EF4444 !important; /* Rojo */
}

.validation-neutral {
    color: #9CA3AF !important; /* Gris */
}

/* Indicador de coincidencia de contraseñas */
#password-match-indicator {
    position: relative;
    z-index: 1;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Asegurar que el contenedor del campo tenga posicionamiento relativo */
.password-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

/* Responsive */
@media (max-width: 640px) {
    .form-container {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .password-input-container input {
        padding: 0.875rem;
        padding-right: 3rem !important;
        font-size: 1rem;
    }
    
    .password-input-container .toggle-password {
        padding: 10px;
        right: 0.75rem;
    }
    
    .password-input-container .toggle-password svg {
        width: 1.5rem;
        height: 1.5rem;
    }
}
